Skip to content

Commit

Permalink
Merge pull request #38432 from CleverRaven/revert-38430-makefile-use_…
Browse files Browse the repository at this point in the history
…libcxx

Revert "Allow using different standard library through USE_LIBCXX"
  • Loading branch information
ZhilkinSerg authored Feb 28, 2020
2 parents 23fbf18 + 9c0d9f2 commit 1f7e04c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,6 @@ ifneq ($(findstring BSD,$(OS)),)
BSD = 1
endif

# Which standard library to use (e.g. libstdc++ or libc++)
ifdef USE_LIBCXX
OTHERS += -stdlib=$(USE_LIBCXX)
LDFLAGS += -stdlib=$(USE_LIBCXX)
endif

# This sets CXX and so must be up here
ifdef CLANG
# Allow setting specific CLANG version
Expand All @@ -233,6 +227,13 @@ ifdef CLANG
else
CLANGCMD = $(CLANG)
endif
ifeq ($(NATIVE), osx)
USE_LIBCXX = 1
endif
ifdef USE_LIBCXX
OTHERS += -stdlib=libc++
LDFLAGS += -stdlib=libc++
endif
ifdef CCACHE
CXX = CCACHE_CPP2=1 ccache $(CROSS)$(CLANGCMD)
LD = CCACHE_CPP2=1 ccache $(CROSS)$(CLANGCMD)
Expand Down

0 comments on commit 1f7e04c

Please sign in to comment.