Commit e4c41ec2 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

rts: Don't keep findPtr symbol alive if not -DDEBUG

Test Plan: Test with Hadrian

Reviewers: simonmar, snowleopard, erikd

Subscribers: rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4846
parent 6f083b3d
......@@ -251,9 +251,11 @@ library
"-Wl,-u,_hs_atomicwrite8"
"-Wl,-u,_hs_atomicwrite16"
"-Wl,-u,_hs_atomicwrite32"
#if defined(DEBUG)
-- This symbol is useful in gdb, but not referred to anywhere,
-- so we need to force it to be included in the binary.
"-Wl,-u,_findPtr"
#endif
else
ld-options:
"-Wl,-u,base_GHCziTopHandler_runIO_closure"
......@@ -324,9 +326,11 @@ library
"-Wl,-u,hs_atomicwrite8"
"-Wl,-u,hs_atomicwrite16"
"-Wl,-u,hs_atomicwrite32"
#if defined(DEBUG)
-- This symbol is useful in gdb, but not referred to anywhere,
-- so we need to force it to be included in the binary.
"-Wl,-u,findPtr"
#endif
if os(osx)
ld-options: "-Wl,-search_paths_first"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment