Commit de0da8af authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Makefile: make -frounding-math clang-only

We were only using this to make clang behave like GCC, but some versions of GCC are bugged such that enabling -frounding-math prevents them from correctly handling constexpr float values determined at compile time.
parent 0e45842e
......@@ -458,7 +458,7 @@ endif
##### Instantiate variables
COMMONFLAGS :=
COMPILERFLAGS := -funsigned-char -frounding-math
COMPILERFLAGS := -funsigned-char
CSTD := -std=gnu11
CXXSTD := -std=gnu++14
......@@ -687,6 +687,10 @@ ifneq (0,$(KRANDDEBUG))
COMMONFLAGS += -fno-inline -fno-inline-functions -fno-inline-functions-called-once
endif
ifneq (0,$(CLANG))
COMMONFLAGS += -frounding-math
endif
COMMONFLAGS += -fno-strict-aliasing -fno-threadsafe-statics $(F_JUMP_TABLES) $(F_NO_STACK_PROTECTOR)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment