-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build so that it works with clang.
make USE_CLANG=1 USE_GCC=0
- Loading branch information
1 parent
e748646
commit 8d2b5cc
Showing
3 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ FC = gfortran | |
CFLAGS = -pipe -std=gnu99 -fPIC | ||
CXXFLAGS = -pipe -fPIC -fno-rtti | ||
DEBUGFLAGS = -ggdb3 -DDEBUG | ||
SHIPFLAGS = -O3 -DNDEBUG | ||
SHIPFLAGS = -O3 -DNDEBUG -falign-functions | ||
endif | ||
|
||
ifeq ($(USECLANG),1) | ||
|
@@ -34,7 +34,7 @@ CXX = clang++ | |
CFLAGS = -fPIC -fexceptions -pipe | ||
CXXFLAGS = -fPIC -fno-rtti -fexceptions -pipe | ||
DEBUGFLAGS = -g -DDEBUG | ||
SHIPFLAGS = -O4 -DNDEBUG | ||
SHIPFLAGS = -O3 -DNDEBUG | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ViralBShah
via email
Author
Member
|
||
endif | ||
|
||
# OS specific stuff | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I bet this was the culprit, huh?