Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CMAKE_MODULE_LINKER_FLAGS_INIT breaks macos builds #1344

Merged
merged 3 commits into from
Jan 2, 2025

Conversation

jsun-splunk
Copy link
Contributor

The PR #1308, added CMAKE_MODULE_LINKER_FLAGS_INIT with the value of cxx_linker_shared to the generated toolchain file in CMAKE.

This works for most use cases, however, it broke some macos builds that build bundles. This is because the toolchain usually sets "-shared" or "-dynamiclib" while CMAKE sets "-bundle" for Apple platforms. "-bundle" cannot co-exist with the previous two flags.

@jsun-splunk jsun-splunk force-pushed the jsun-cmake-module branch 2 times, most recently from 148e04b to 4b01d58 Compare December 17, 2024 09:03
The PR bazel-contrib#1308, added
`CMAKE_MODULE_LINKER_FLAGS_INIT` with the value of cxx_linker_shared to the
generated toolchain file in CMAKE.

This works for most use cases, however, it broke some macos builds that build
bundles. This is because the toolchain usually sets "-shared" or "-dynamiclib"
while CMAKE sets "-bundle" for Apple platforms. "-bundle" cannot co-exist with
the previous two flags.
@jsharpe jsharpe enabled auto-merge (squash) January 2, 2025 00:43
@jsharpe jsharpe merged commit 0d84650 into bazel-contrib:main Jan 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants