Skip to content

Allow building ZFS with Clang #195

@extSunset

Description

@extSunset

I suggest removing workaround to allow building ZFS with Clang (LTO), but with -Wno-error=uninitialized added to KCFLAGS when building ZFS.

### Prevent ZFS and LTO building at the same time
# More infos here: https://github.com/openzfs/zfs/issues/15384
if [[ "$_use_llvm_lto" != "none" && -n "$_build_zfs" ]]; then
_die "ZFS and LTO support cannot be built at the same time. "
fi

Or a patch could be added based on this comment.
openzfs/zfs#15384 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions