Skip to content

Commit f90ca87

Browse files
committed
Revert "Try to remove -lunwind from link flags"
This reverts commit 0a4a0e1.
1 parent 0a4a0e1 commit f90ca87

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

libunwind/test/configs/llvm-libunwind-shared.cfg.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ if '@CMAKE_DL_LIBS@':
2323
# Stack unwinding tests need unwinding tables and these are not generated by default on all targets.
2424
compile_flags.append('-funwind-tables')
2525

26-
# Use libunwind from llvm
27-
compile_flags.append('-rtlib=compiler-rt')
28-
compile_flags.append('-unwindlib=libunwind')
29-
3026
local_sysroot = '@CMAKE_OSX_SYSROOT@' or '@CMAKE_SYSROOT@'
3127
config.substitutions.append(('%{flags}',
3228
'-isysroot {}'.format(local_sysroot) if local_sysroot else ''
@@ -35,7 +31,7 @@ config.substitutions.append(('%{compile_flags}',
3531
'-nostdinc++ -I %{{include}} {}'.format(' '.join(compile_flags))
3632
))
3733
config.substitutions.append(('%{link_flags}',
38-
'-L %{{lib}} -Wl,-rpath,%{{lib}} {}'.format(' '.join(link_flags))
34+
'-L %{{lib}} -Wl,-rpath,%{{lib}} -lunwind {}'.format(' '.join(link_flags))
3935
))
4036
config.substitutions.append(('%{exec}',
4137
'%{executor} --execdir %T -- '

0 commit comments

Comments
 (0)