mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
itk: remove -march=corei7 and -mtune=native flags from cmake build files
- probable cause of build failure on Hydra on branch release-20.09
This commit is contained in:
parent
e70989d080
commit
83a1ce3d2b
@ -12,6 +12,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1z7rmqrhgl7hfb3d0077kvp8vpi05r2zk3qyqzmv7bzbal5sqqhv";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMake/ITKSetStandardCompilerFlags.cmake \
|
||||
--replace "-march=corei7" "" \
|
||||
--replace "-mtune=native" ""
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_EXAMPLES=OFF"
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
|
Loading…
Reference in New Issue
Block a user