Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Fixed error occur when compiling with llvm-10 #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clang/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ifeq ($(LLVM_LDFLAGS),)
$(error Could not run $(LLVM_CONFIG). Please make sure it is available on your PATH \
or specify the absolute path of the llvm-config executable in the LLVM_CONFIG environment variable)
endif
CXXFLAGS := $(shell ${LLVM_CONFIG} --cxxflags) -fPIC -O2 -std=c++11 -Wall -Wno-strict-aliasing $(if $(DEBUG),-O0 -g)
CXXFLAGS := -std=c++11 $(shell ${LLVM_CONFIG} --cxxflags) -fPIC -O2 -Wall -Wno-strict-aliasing $(if $(DEBUG),-O0 -g)

ifeq ($(UNAME_S),Linux)
LDFLAGS := -fPIC -g -Wl,-rpath -Wl,'$$ORIGIN' $(LLVM_LDFLAGS) -shared
Expand Down