mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 20:43:41 +01:00
Merge pull request #142 from JuliaLang/sf/cflags
Set optimization level only if not already overridden
This commit is contained in:
commit
1492ff029a
1 changed files with 4 additions and 2 deletions
6
Make.inc
6
Make.inc
|
@ -99,8 +99,10 @@ ifeq ($(ARCH),x86_64)
|
||||||
override ARCH := amd64
|
override ARCH := amd64
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# The optimization flag may be overriden with the environment variable CFLAGS.
|
# If CFLAGS does not contain a -O optimization flag, default to -O3
|
||||||
CFLAGS ?= -O3
|
ifeq ($(findstring -O,$(CFLAGS)),)
|
||||||
|
CFLAGS_add += -O3
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq (,$(findstring MINGW,$(OS)))
|
ifneq (,$(findstring MINGW,$(OS)))
|
||||||
override OS=WINNT
|
override OS=WINNT
|
||||||
|
|
Loading…
Reference in a new issue