Don't pass -s parameter to clang.

This commit is contained in:
Bartosz Taudul 2021-01-26 19:39:24 +01:00
parent 81c91a87fc
commit 62d6f4127d
5 changed files with 11 additions and 12 deletions

View File

@ -1,7 +1,6 @@
ARCH := $(shell uname -m)
CFLAGS := -O3 -s -march=native
CFLAGS := -O3 -march=native
DEFINES := -DNDEBUG
BUILD := release
include ../../../common/unix-release.mk
include build.mk

3
common/unix-release.mk Normal file
View File

@ -0,0 +1,3 @@
ifeq (0,$(shell $(CC) --version | grep clang && echo 1 || echo 0))
CFLAGS += -s
endif

View File

@ -1,7 +1,6 @@
ARCH := $(shell uname -m)
CFLAGS := -O3 -s -march=native
CFLAGS := -O3 -march=native
DEFINES := -DNDEBUG
BUILD := release
include ../../../common/unix-release.mk
include build.mk

View File

@ -1,7 +1,6 @@
ARCH := $(shell uname -m)
CFLAGS := -O3 -s -march=native
CFLAGS := -O3 -march=native
DEFINES := -DNDEBUG
BUILD := release
include ../../../common/unix-release.mk
include build.mk

View File

@ -1,7 +1,6 @@
ARCH := $(shell uname -m)
CFLAGS := -O3 -s -march=native
CFLAGS := -O3 -march=native
DEFINES := -DNDEBUG
BUILD := release
include ../../../common/unix-release.mk
include build.mk