forked from mirrors/nixpkgs
Merge pull request #163698 from InternetUnexplorer/rocm-llvm-disable-shared-libs
llvmPackages_rocm.llvm: don't build shared libs
This commit is contained in:
commit
29a988f978
|
@ -12,7 +12,7 @@
|
|||
, zlib
|
||||
, debugVersion ? false
|
||||
, enableManpages ? false
|
||||
, enableSharedLibraries ? !stdenv.hostPlatform.isStatic
|
||||
, enableSharedLibraries ? false
|
||||
|
||||
, version
|
||||
, src
|
||||
|
@ -59,7 +59,7 @@ in stdenv.mkDerivation rec {
|
|||
"-DSPHINX_WARNINGS_AS_ERRORS=OFF"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
postPatch = lib.optional enableSharedLibraries ''
|
||||
substitute '${./outputs.patch}' ./outputs.patch --subst-var lib
|
||||
patch -p1 < ./outputs.patch
|
||||
'';
|
||||
|
|
|
@ -27,15 +27,6 @@ stdenv.mkDerivation rec {
|
|||
"-DLLVM_TARGETS_TO_BUILD=\"AMDGPU;X86\""
|
||||
];
|
||||
|
||||
# The comgr build tends to link against the static LLVM libraries
|
||||
# *and* the dynamic library. Linking against both causes errors
|
||||
# about command line options being registered twice. This patch
|
||||
# removes the static library linking.
|
||||
patchPhase = ''
|
||||
sed -e '/^llvm_map_components_to_libnames/,/[[:space:]]*Symbolize)/d' \
|
||||
-i CMakeLists.txt
|
||||
'';
|
||||
|
||||
passthru.updateScript = writeScript "update.sh" ''
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl jq common-updater-scripts
|
||||
|
|
Loading…
Reference in a new issue