Enhance chibicc

This commit is contained in:
Justine Tunney 2020-12-09 04:00:48 -08:00
parent 8da931a7f6
commit 9df2cef4c4
52 changed files with 2606 additions and 2004 deletions

View file

@ -104,7 +104,7 @@ CONFIG_COPTS += \
-ftrapv
TARGET_ARCH ?= \
-march=k8-sse3
-msse3
OVERRIDE_CCFLAGS += \
-fno-pie
@ -177,6 +177,6 @@ ifeq ($(MODE), ansi)
CONFIG_CFLAGS += -std=c11
#CONFIG_CPPFLAGS += -ansi
CONFIG_CXXFLAGS += -std=c++11
TARGET_ARCH ?= -march=k8-sse3
TARGET_ARCH ?= -msse3
endif

View file

@ -22,6 +22,11 @@ set -e
SPECIAL_TEXT=$(
$1 --version |
sed -n '
/chibicc/ {
i\
chibicc
q
}
/Free Software/ {
i\
gcc