mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 14:25:49 +00:00
Bug 1854052 - Don't build elfhack tests when building with relrhack. r=firefox-build-system-reviewers,andi
They are not useful (and the corresponding Makefile doesn't use them anyways, so they're built for nothing). Differential Revision: https://phabricator.services.mozilla.com/D188679
This commit is contained in:
parent
b03c0f4157
commit
b50fd4bf85
@ -7,19 +7,6 @@
|
||||
DIST_INSTALL = False
|
||||
DIRS += ["inject"]
|
||||
|
||||
if not CONFIG["CROSS_COMPILE"]:
|
||||
SOURCES += [
|
||||
"dummy.c",
|
||||
]
|
||||
SOURCES["dummy.c"].flags += ["-fno-lto"]
|
||||
|
||||
SOURCES += [
|
||||
"test-array.c",
|
||||
"test-ctors.c",
|
||||
]
|
||||
SOURCES["test-array.c"].flags += ["-fno-lto"]
|
||||
SOURCES["test-ctors.c"].flags += ["-fno-lto"]
|
||||
|
||||
if CONFIG["RELRHACK"]:
|
||||
HOST_SOURCES += [
|
||||
"relrhack.cpp",
|
||||
@ -36,6 +23,19 @@ else:
|
||||
|
||||
HostProgram("elfhack")
|
||||
|
||||
if not CONFIG["CROSS_COMPILE"]:
|
||||
SOURCES += [
|
||||
"dummy.c",
|
||||
]
|
||||
SOURCES["dummy.c"].flags += ["-fno-lto"]
|
||||
|
||||
SOURCES += [
|
||||
"test-array.c",
|
||||
"test-ctors.c",
|
||||
]
|
||||
SOURCES["test-array.c"].flags += ["-fno-lto"]
|
||||
SOURCES["test-ctors.c"].flags += ["-fno-lto"]
|
||||
|
||||
NO_PGO = True
|
||||
|
||||
COMPILE_FLAGS["OS_CXXFLAGS"] = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user