Skip to content

Commit

Permalink
test: ensure that we dead-strip in the linker
Browse files Browse the repository at this point in the history
`/OPT:REF` is needed for link to dead strip functions, `/Gy` by itself
is not sufficient.
  • Loading branch information
compnerd committed Dec 24, 2019
1 parent a21becc commit 64c6bb3
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit 64c6bb3

Please sign in to comment.