summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-12-24 10:18:13 -0800
committerSaleem Abdulrasool <compnerd@compnerd.org>2019-12-24 10:19:22 -0800
commit64c6bb37832c2139a91801fece96de8898151079 (patch)
tree23ee363d268a7d7ed7b7840d715ed4fe0e0390f9 /lldb/packages/Python
parenta21beccea2020f950845cbb68db663d0737e174c (diff)
downloadbcm5719-llvm-64c6bb37832c2139a91801fece96de8898151079.tar.gz
bcm5719-llvm-64c6bb37832c2139a91801fece96de8898151079.zip
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.
Diffstat (limited to 'lldb/packages/Python')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile b/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile
index fa147bb2096..ea15ec84d68 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile
@@ -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
OpenPOWER on IntegriCloud