bazel-test-cpp: clean up apple_sdk stubs

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
Ihar Hrachyshka 2025-04-17 21:49:51 -04:00
parent 7ad1b2838b
commit 2ea4434e0b

View File

@ -10,9 +10,7 @@
runLocal,
runtimeShell,
writeScript,
writeText,
distDir,
Foundation ? null,
}:
let
@ -58,10 +56,6 @@ let
+ lib.optionalString (stdenv.hostPlatform.isDarwin) ''
--cxxopt=-x --cxxopt=c++ --host_cxxopt=-x --host_cxxopt=c++ \
--linkopt=-stdlib=libc++ --host_linkopt=-stdlib=libc++ \
''
+ lib.optionalString (stdenv.hostPlatform.isDarwin && Foundation != null) ''
--linkopt=-Wl,-F${Foundation}/Library/Frameworks \
--linkopt=-L${darwin.libobjc}/lib \
'';
};