Skip to content

Commit ae7cfa5

Browse files
keithcopybara-github
authored andcommitted
Remove default -s flag from macOS libtool invocation
-s is the default but it's not supported by llvm's libtool replacement which results in failed links. I don't think we really care about the specifics here, so since it's the default for most folks we can drop it. Closes #17489. PiperOrigin-RevId: 511121405 Change-Id: Id0b52f960072100d232fdbf5461dec068c8e3edf
1 parent 3f91516 commit ae7cfa5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/google/devtools/build/lib/rules/cpp/CppActionConfigs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ public static ImmutableList<CToolchain.Feature> getLegacyFeatures(
611611
" action: 'c++-link-static-library'",
612612
" flag_group {",
613613
ifLinux(platform, "flag: 'rcsD'"),
614-
ifMac(platform, "flag: '-static'", "flag: '-s'"),
614+
ifMac(platform, "flag: '-static'"),
615615
" }",
616616
" flag_group {",
617617
" expand_if_all_available: 'output_execpath'",

0 commit comments

Comments
 (0)