зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1460020: Filter out PGO flags from cargo's LDFLAGS. r=froydnj
This commit is contained in:
Родитель
5430972e3d
Коммит
e02fd9579e
|
@ -925,8 +925,9 @@ ifndef MOZ_TSAN
|
|||
# Cargo needs the same linker flags as the C/C++ compiler,
|
||||
# but not the final libraries. Filter those out because they
|
||||
# cause problems on macOS 10.7; see bug 1365993 for details.
|
||||
# Also, we don't want to pass PGO flags until cargo supports them.
|
||||
target_cargo_env_vars := \
|
||||
MOZ_CARGO_WRAP_LDFLAGS="$(filter-out -framework Cocoa -lobjc AudioToolbox ExceptionHandling,$(LDFLAGS))" \
|
||||
MOZ_CARGO_WRAP_LDFLAGS="$(filter-out -framework Cocoa -lobjc AudioToolbox ExceptionHandling -fprofile-%,$(LDFLAGS))" \
|
||||
MOZ_CARGO_WRAP_LD="$(CC)" \
|
||||
$(cargo_linker_env_var)=$(topsrcdir)/build/cargo-linker
|
||||
endif # MOZ_TSAN
|
||||
|
|
Загрузка…
Ссылка в новой задаче