Skip to content

Commit 30065d2

Browse files
committed
Add review changes
1 parent 2da770c commit 30065d2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lldb/packages/Python/lldbsuite/test/make/Makefile.rules

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,7 @@ ifeq (,$(filter 1, $(USE_LIBSTDCPP) $(USE_LIBCPP) $(USE_SYSTEM_STDLIB)))
388388
endif
389389

390390
# If `-nostdlib++` is not passed, clang will link to the system's stdlib.
391-
ifeq ($(LDC), clang)
392-
LDFLAGS += -nostdlib++ -nostdinc++
393-
endif
394-
LDFLAGS += -L$(LIBCPP_LIBRARY_DIR) -Wl,-rpath,$(LIBCPP_LIBRARY_DIR) -lc++
391+
LDFLAGS += -nostdlib++ -L$(LIBCPP_LIBRARY_DIR) -Wl,-rpath,$(LIBCPP_LIBRARY_DIR) -lc++
395392
else
396393
USE_SYSTEM_STDLIB := 1
397394
endif
@@ -412,7 +409,8 @@ ifeq (1,$(USE_LIBCPP))
412409
ifneq "$(LIBCPP_INCLUDE_TARGET_DIR)" ""
413410
CXXFLAGS += -cxx-isystem $(LIBCPP_INCLUDE_TARGET_DIR)
414411
endif
415-
LDFLAGS += -L$(LIBCPP_LIBRARY_DIR) -Wl,-rpath,$(LIBCPP_LIBRARY_DIR) -lc++
412+
# If `-nostdlib++` is not passed, clang will link to the system's stdlib.
413+
LDFLAGS += -nostdlib++ -L$(LIBCPP_LIBRARY_DIR) -Wl,-rpath,$(LIBCPP_LIBRARY_DIR) -lc++
416414
else
417415
ifeq "$(OS)" "Android"
418416
# Nothing to do, this is already handled in

0 commit comments

Comments
 (0)