Skip to content

Commit c5332e4

Browse files
committed
[lldb][test] Enable static linking with libcxx for import-std-module tests
--whole-archive and --allow-multiple-definition options has been added to linker flags of these import-std-module tests in order to make them pass with libcxx static linking enabled. Darwin has been excluded since it doesn't seem to build in such configuration. Also, some tests were switched from system stdlib to libcxx since the problem described in https://reviews.llvm.org/D139361 seems to be fixed.
1 parent 9014920 commit c5332e4

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
USE_LIBCPP := 1
22
CXX_SOURCES := main.cpp
3+
4+
ifneq ($(OS),Darwin)
5+
LD_EXTRAS := -Xlinker --whole-archive -Xlinker --allow-multiple-definition
6+
endif
7+
38
include Makefile.rules
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
USE_LIBCPP := 1
22
CXX_SOURCES := main.cpp
3+
4+
ifneq ($(OS),Darwin)
5+
LD_EXTRAS := -Xlinker --whole-archive -Xlinker --allow-multiple-definition
6+
endif
7+
38
include Makefile.rules
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
USE_LIBCPP := 1
22
CXX_SOURCES := main.cpp
3+
4+
ifneq ($(OS),Darwin)
5+
LD_EXTRAS := -Xlinker --whole-archive -Xlinker --allow-multiple-definition
6+
endif
7+
38
include Makefile.rules
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
USE_LIBCPP := 1
22
CXX_SOURCES := main.cpp
3+
4+
ifneq ($(OS),Darwin)
5+
LD_EXTRAS := -Xlinker --whole-archive -Xlinker --allow-multiple-definition
6+
endif
7+
38
include Makefile.rules
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
USE_LIBCPP := 1
22
CXX_SOURCES := main.cpp
3+
4+
ifneq ($(OS),Darwin)
5+
LD_EXTRAS := -Xlinker --whole-archive -Xlinker --allow-multiple-definition
6+
endif
7+
38
include Makefile.rules

0 commit comments

Comments
 (0)