Skip to content

Commit

Permalink
Revert "Allow using different standard library through USE_LIBCXX"
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg authored Feb 28, 2020
1 parent 23fbf18 commit 9c0d9f2
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 9c0d9f2

Please sign in to comment.