forked from OSchip/llvm-project
test: ensure that we dead-strip in the linker
`/OPT:REF` is needed for link to dead strip functions, `/Gy` by itself is not sufficient.
This commit is contained in:
parent
a21beccea2
commit
64c6bb3783
|
@ -8,6 +8,7 @@ ifeq "$(OS)" "Darwin"
|
|||
LD_EXTRAS = -Xlinker -dead_strip
|
||||
else ifeq "$(OS)" "Windows_NT"
|
||||
CFLAGS_EXTRAS += /Gw /Gy
|
||||
LD_EXTRAS = -Xlinker /OPT:REF
|
||||
else
|
||||
CFLAGS_EXTRAS += -fdata-sections -ffunction-sections
|
||||
LD_EXTRAS = -Wl,--gc-sections
|
||||
|
|
Loading…
Reference in New Issue