Loading pkgs/development/compilers/llvm/common/bolt/default.nix +6 −3 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ python3, buildLlvmTools, patches ? [ ], devExtraCmakeFlags ? [ ], }: stdenv.mkDerivation (finalAttrs: { Loading Loading @@ -43,9 +44,11 @@ stdenv.mkDerivation (finalAttrs: { libxml2 ]; cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ (lib.cmakeFeature "LLVM_TABLEGEN_EXE" "${buildLlvmTools.llvm}/bin/llvm-tblgen") ]; ] ++ devExtraCmakeFlags; postUnpack = '' chmod -R u+w -- $sourceRoot/.. Loading pkgs/development/compilers/llvm/common/clang/default.nix +4 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ , fixDarwinDylibNames , enableManpages ? false , clang-tools-extra_src ? null , devExtraCmakeFlags ? [] }: let Loading Loading @@ -69,7 +70,9 @@ let # `clang-pseudo-gen`: https://github.com/llvm/llvm-project/commit/cd2292ef824591cc34cc299910a3098545c840c7 "-DCLANG_TIDY_CONFUSABLE_CHARS_GEN=${buildLlvmTools.libclang.dev}/bin/clang-tidy-confusable-chars-gen" "-DCLANG_PSEUDO_GEN=${buildLlvmTools.libclang.dev}/bin/clang-pseudo-gen" ]) ++ lib.optional (stdenv.targetPlatform.useLLVM or false) "-DCLANG_DEFAULT_CXX_STDLIB=ON"; ]) ++ lib.optionals (stdenv.targetPlatform.useLLVM or false) [ "-DCLANG_DEFAULT_CXX_STDLIB=ON" ] ++ devExtraCmakeFlags; postPatch = '' # Make sure clang passes the correct location of libLTO to ld64 Loading pkgs/development/compilers/llvm/common/compiler-rt/default.nix +3 −2 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ # `libcompiler_rt` library, at least under certain configurations. Some # platforms stil expect this, however, so we symlink one into place. , forceLinkCompilerRt ? stdenv.hostPlatform.isOpenBSD , devExtraCmakeFlags ? [] }: let Loading Loading @@ -136,7 +137,7 @@ stdenv.mkDerivation ({ "-DSANITIZER_MIN_OSX_VERSION=10.10" ] ++ lib.optionals (noSanitizers && lib.versionAtLeast release_version "19") [ "-DCOMPILER_RT_BUILD_CTX_PROFILE=OFF" ]; ] ++ devExtraCmakeFlags; outputs = [ "out" "dev" ]; Loading pkgs/development/compilers/llvm/common/libcxx/default.nix +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ , cxxabi ? if stdenv.hostPlatform.isFreeBSD then freebsd.libcxxrt else null , libunwind , enableShared ? !stdenv.hostPlatform.isStatic , devExtraCmakeFlags ? [] }: # external cxxabi is not supported on Darwin as the build will not link libcxx Loading Loading @@ -103,7 +104,8 @@ let "-DCMAKE_CXX_COMPILER_WORKS=ON" "-DUNIX=ON" # Required otherwise libc++ fails to detect the correct linker ] ++ cxxCMakeFlags ++ lib.optionals (cxxabi == null) cxxabiCMakeFlags; ++ lib.optionals (cxxabi == null) cxxabiCMakeFlags ++ devExtraCmakeFlags; in Loading pkgs/development/compilers/llvm/common/libunwind/default.nix +3 −1 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ , python3 , libcxx , enableShared ? !stdenv.hostPlatform.isStatic , devExtraCmakeFlags ? [] }: let pname = "libunwind"; Loading Loading @@ -68,7 +69,8 @@ stdenv.mkDerivation (rec { ]; cmakeFlags = lib.optional (lib.versionAtLeast release_version "15") "-DLLVM_ENABLE_RUNTIMES=libunwind" ++ lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF"; ++ lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF" ++ devExtraCmakeFlags; meta = llvm_meta // { # Details: https://github.com/llvm/llvm-project/blob/main/libunwind/docs/index.rst Loading Loading
pkgs/development/compilers/llvm/common/bolt/default.nix +6 −3 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ python3, buildLlvmTools, patches ? [ ], devExtraCmakeFlags ? [ ], }: stdenv.mkDerivation (finalAttrs: { Loading Loading @@ -43,9 +44,11 @@ stdenv.mkDerivation (finalAttrs: { libxml2 ]; cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ (lib.cmakeFeature "LLVM_TABLEGEN_EXE" "${buildLlvmTools.llvm}/bin/llvm-tblgen") ]; ] ++ devExtraCmakeFlags; postUnpack = '' chmod -R u+w -- $sourceRoot/.. Loading
pkgs/development/compilers/llvm/common/clang/default.nix +4 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ , fixDarwinDylibNames , enableManpages ? false , clang-tools-extra_src ? null , devExtraCmakeFlags ? [] }: let Loading Loading @@ -69,7 +70,9 @@ let # `clang-pseudo-gen`: https://github.com/llvm/llvm-project/commit/cd2292ef824591cc34cc299910a3098545c840c7 "-DCLANG_TIDY_CONFUSABLE_CHARS_GEN=${buildLlvmTools.libclang.dev}/bin/clang-tidy-confusable-chars-gen" "-DCLANG_PSEUDO_GEN=${buildLlvmTools.libclang.dev}/bin/clang-pseudo-gen" ]) ++ lib.optional (stdenv.targetPlatform.useLLVM or false) "-DCLANG_DEFAULT_CXX_STDLIB=ON"; ]) ++ lib.optionals (stdenv.targetPlatform.useLLVM or false) [ "-DCLANG_DEFAULT_CXX_STDLIB=ON" ] ++ devExtraCmakeFlags; postPatch = '' # Make sure clang passes the correct location of libLTO to ld64 Loading
pkgs/development/compilers/llvm/common/compiler-rt/default.nix +3 −2 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ # `libcompiler_rt` library, at least under certain configurations. Some # platforms stil expect this, however, so we symlink one into place. , forceLinkCompilerRt ? stdenv.hostPlatform.isOpenBSD , devExtraCmakeFlags ? [] }: let Loading Loading @@ -136,7 +137,7 @@ stdenv.mkDerivation ({ "-DSANITIZER_MIN_OSX_VERSION=10.10" ] ++ lib.optionals (noSanitizers && lib.versionAtLeast release_version "19") [ "-DCOMPILER_RT_BUILD_CTX_PROFILE=OFF" ]; ] ++ devExtraCmakeFlags; outputs = [ "out" "dev" ]; Loading
pkgs/development/compilers/llvm/common/libcxx/default.nix +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ , cxxabi ? if stdenv.hostPlatform.isFreeBSD then freebsd.libcxxrt else null , libunwind , enableShared ? !stdenv.hostPlatform.isStatic , devExtraCmakeFlags ? [] }: # external cxxabi is not supported on Darwin as the build will not link libcxx Loading Loading @@ -103,7 +104,8 @@ let "-DCMAKE_CXX_COMPILER_WORKS=ON" "-DUNIX=ON" # Required otherwise libc++ fails to detect the correct linker ] ++ cxxCMakeFlags ++ lib.optionals (cxxabi == null) cxxabiCMakeFlags; ++ lib.optionals (cxxabi == null) cxxabiCMakeFlags ++ devExtraCmakeFlags; in Loading
pkgs/development/compilers/llvm/common/libunwind/default.nix +3 −1 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ , python3 , libcxx , enableShared ? !stdenv.hostPlatform.isStatic , devExtraCmakeFlags ? [] }: let pname = "libunwind"; Loading Loading @@ -68,7 +69,8 @@ stdenv.mkDerivation (rec { ]; cmakeFlags = lib.optional (lib.versionAtLeast release_version "15") "-DLLVM_ENABLE_RUNTIMES=libunwind" ++ lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF"; ++ lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF" ++ devExtraCmakeFlags; meta = llvm_meta // { # Details: https://github.com/llvm/llvm-project/blob/main/libunwind/docs/index.rst Loading