mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
Disable compiler runtime-test for cmake when cross-compiling to None platform. (#283623)
This commit is contained in:
commit
33508ca4d4
1 changed files with 3 additions and 1 deletions
|
@ -20,11 +20,13 @@ let
|
||||||
"-DCMAKE_HOST_SYSTEM_VERSION=${stdenv.buildPlatform.uname.release}"
|
"-DCMAKE_HOST_SYSTEM_VERSION=${stdenv.buildPlatform.uname.release}"
|
||||||
] ++ optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
] ++ optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||||
"-DCMAKE_CROSSCOMPILING_EMULATOR=env"
|
"-DCMAKE_CROSSCOMPILING_EMULATOR=env"
|
||||||
|
] ++ optionals (stdenv.hostPlatform.isNone) [
|
||||||
|
"-DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY"
|
||||||
] ++ optionals stdenv.hostPlatform.isStatic [
|
] ++ optionals stdenv.hostPlatform.isStatic [
|
||||||
"-DCMAKE_LINK_SEARCH_START_STATIC=ON"
|
"-DCMAKE_LINK_SEARCH_START_STATIC=ON"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
makeCMakeFlags = { cmakeFlags ? [], ... }: cmakeFlags ++ cmakeFlags';
|
makeCMakeFlags = { cmakeFlags ? [ ], ... }: cmakeFlags ++ cmakeFlags';
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue