Commit 64c6bb37 authored by Saleem Abdulrasool's avatar Saleem Abdulrasool
Browse files

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.
parent a21becce
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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