forked from cory/tildefriends
build: Not all the toolchains support -Oz. Oh well.
This commit is contained in:
parent
9c8b922069
commit
707b4990a6
@ -211,9 +211,11 @@ $(DEBUG_TARGETS): CFLAGS += -DDEBUG -Og
|
|||||||
$(DEBUG_TARGETS): LDFLAGS += -Og
|
$(DEBUG_TARGETS): LDFLAGS += -Og
|
||||||
$(RELEASE_TARGETS): CFLAGS += \
|
$(RELEASE_TARGETS): CFLAGS += \
|
||||||
-DNDEBUG \
|
-DNDEBUG \
|
||||||
-flto \
|
-flto
|
||||||
-Oz
|
$(ANDROID_RELEASE_TARGETS): CFLAGS += -Oz
|
||||||
$(RELEASE_TARGETS): LDFLAGS += -Oz
|
$(ANDROID_RELEASE_TARGETS): LDFLAGS += -Oz
|
||||||
|
$(NONANDROID_RELEASE_TARGETS): CFLAGS += -Os
|
||||||
|
$(NONANDROID_RELEASE_TARGETS): LDFLAGS += -Os
|
||||||
$(WINDOWS_TARGETS): CC = x86_64-w64-mingw32-gcc-win32
|
$(WINDOWS_TARGETS): CC = x86_64-w64-mingw32-gcc-win32
|
||||||
$(WINDOWS_TARGETS): AS = $(CC)
|
$(WINDOWS_TARGETS): AS = $(CC)
|
||||||
$(WINDOWS_TARGETS): CFLAGS += \
|
$(WINDOWS_TARGETS): CFLAGS += \
|
||||||
|
@ -29,14 +29,14 @@ do
|
|||||||
case $build_target in
|
case $build_target in
|
||||||
ios64-xcrun)
|
ios64-xcrun)
|
||||||
TRIBLE="arm64-darwin-ios"
|
TRIBLE="arm64-darwin-ios"
|
||||||
OPTIONS="--static -static -Oz -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined -miphoneos-version-min=9.0"
|
OPTIONS="--static -static -Os -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined -miphoneos-version-min=9.0"
|
||||||
DESTDIR="/tmp/$BUILD_DIR/arm64-ios"
|
DESTDIR="/tmp/$BUILD_DIR/arm64-ios"
|
||||||
SSL_TARGET="ios64-xcrun"
|
SSL_TARGET="ios64-xcrun"
|
||||||
CC=clang
|
CC=clang
|
||||||
;;
|
;;
|
||||||
iossimulator-xcrun)
|
iossimulator-xcrun)
|
||||||
TRIBLE="x86_64-darwin-ios"
|
TRIBLE="x86_64-darwin-ios"
|
||||||
OPTIONS="--static -static -Oz -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined"
|
OPTIONS="--static -static -Os -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined"
|
||||||
DESTDIR="/tmp/$BUILD_DIR/x86_64-iossim"
|
DESTDIR="/tmp/$BUILD_DIR/x86_64-iossim"
|
||||||
SSL_TARGET="iossimulator-xcrun"
|
SSL_TARGET="iossimulator-xcrun"
|
||||||
CC=clang
|
CC=clang
|
||||||
|
@ -69,7 +69,7 @@ no-uplink
|
|||||||
no-whirlpool
|
no-whirlpool
|
||||||
no-weak-ssl-ciphers
|
no-weak-ssl-ciphers
|
||||||
no-zlib
|
no-zlib
|
||||||
-Oz
|
-Os
|
||||||
-DOPENSSL_SMALL_FOOTPRINT
|
-DOPENSSL_SMALL_FOOTPRINT
|
||||||
-ffunction-sections
|
-ffunction-sections
|
||||||
-fdata-sections
|
-fdata-sections
|
||||||
|
@ -56,7 +56,7 @@ build_the_thing() {
|
|||||||
no-uplink
|
no-uplink
|
||||||
no-weak-ssl-ciphers
|
no-weak-ssl-ciphers
|
||||||
no-zlib
|
no-zlib
|
||||||
-Oz
|
-Os
|
||||||
-ffunction-sections
|
-ffunction-sections
|
||||||
-fdata-sections
|
-fdata-sections
|
||||||
-flto
|
-flto
|
||||||
|
Loading…
Reference in New Issue
Block a user