Skip to content

Commit

Permalink
Merge pull request #4118 from pdbain-ibm/build
Browse files Browse the repository at this point in the history
Remove unsupported compiler options for clang
  • Loading branch information
gacholio authored Jan 4, 2019
2 parents ba85e60 + 8aad8b5 commit 12488e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime/compiler/build/toolcfg/gnu/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ CX_OPTFLAG?=$(CX_DEFAULTOPT)
CX_FLAGS_PROD+=$(CX_OPTFLAG)

ifeq ($(HOST_ARCH),x)
CX_FLAGS+=-mfpmath=sse -msse -msse2 -fno-math-errno -fno-rounding-math -fno-trapping-math -fno-signaling-nans
CX_FLAGS+=-mfpmath=sse -msse -msse2 -fno-math-errno -fno-trapping-math

ifeq ($(HOST_BITS),32)
CX_FLAGS+=-m32 -fpic
Expand Down Expand Up @@ -178,6 +178,8 @@ endif

ifeq ($(C_COMPILER),clang)
CX_FLAGS+=-Wno-parentheses -Werror=header-guard
else
CX_FLAGS+=-fno-rounding-math -fno-signaling-nans
endif

ifeq ($(BUILD_CONFIG),debug)
Expand Down

0 comments on commit 12488e5

Please sign in to comment.