mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Avoid passing -unwindlib on macOS where it isn't needed (#7825)
Removes some warnings from our links on macs when the flag is ignored.
This commit is contained in:
@@ -321,8 +321,13 @@ def libcxx_feature(llvm_bindir = None, clang_bindir = None):
|
||||
"-unwindlib=libunwind",
|
||||
])],
|
||||
with_features = [
|
||||
# libc++ is only used on non-Windows platforms.
|
||||
with_feature_set(not_features = ["windows_target"]),
|
||||
# libc++ is only used on non-Windows platforms, and macOS
|
||||
# doesn't support a custom unwinding library (or need one)
|
||||
# even when using libc++.
|
||||
with_feature_set(not_features = [
|
||||
"macos_target",
|
||||
"windows_target",
|
||||
]),
|
||||
],
|
||||
),
|
||||
flag_set(
|
||||
|
||||
Reference in New Issue
Block a user