From f05032a35355a8c7f2c1d7498d526858d0ab84c9 Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Mon, 25 Jan 2021 18:31:02 +0000 Subject: [PATCH] Makefile: tweak optimization --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a58767af..95f99fe5 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ MKDIR ?= mkdir -p # $(PWD) is the top-level directory. No recursion here (except for subrepos). PWD ?= $(shell pwd) -OPT_NATIVE ?= "-O3 -g3" +OPT_NATIVE ?= "-Os" OPT_WASM ?= "-O2" WASMDIR ?= $(PWD) JS ?= $$JS @@ -87,10 +87,10 @@ build/wasm32/gcc-preliminary/Makefile: | built/wasm32/binutils-gdb build/wasm32/ (cd build/wasm32/gcc-preliminary; CFLAGS=$(OPT_NATIVE) CXXFLAGS=$(OPT_NATIVE) ../../../src/gcc/configure --enable-optimize=$(OPT_NATIVE) --target=wasm32-unknown-none --disable-libatomic --disable-libgomp --disable-libquadmath --enable-explicit-exception-frame-registration --enable-languages=c --disable-libssp --prefix=$(PWD)/wasm32-unknown-none) build/wasm32/glibc/Makefile: | built/wasm32/gcc-preliminary src/glibc build/wasm32/glibc - (cd build/wasm32/glibc; CC=wasm32-unknown-none-gcc PATH=$(PWD)/wasm32-unknown-none/bin:$$PATH ../../../src/glibc/configure CFLAGS="-fPIC -O3 -Wno-error=missing-attributes" --enable-optimize=$(OPT_NATIVE) --host=wasm32-unknown-none --target=wasm32-unknown-none --enable-hacker-mode --prefix=$(PWD)/wasm32-unknown-none/wasm32-unknown-none) + (cd build/wasm32/glibc; CC=wasm32-unknown-none-gcc PATH=$(PWD)/wasm32-unknown-none/bin:$$PATH ../../../src/glibc/configure CFLAGS="-fPIC -Os -Wno-error=missing-attributes" --enable-optimize=$(OPT_NATIVE) --host=wasm32-unknown-none --target=wasm32-unknown-none --enable-hacker-mode --prefix=$(PWD)/wasm32-unknown-none/wasm32-unknown-none) build/wasm32/gcc/Makefile: | built/wasm32/glibc src/gcc build/wasm32/gcc - (cd build/wasm32/gcc; ../../../src/gcc/configure CFLAGS="-O3 -g3" CXXFLAGS="-O3 -g3" --target=wasm32-unknown-none --disable-libatomic --disable-libgomp --disable-libquadmath --enable-explicit-exception-frame-registration --disable-libssp --prefix=$(PWD)/wasm32-unknown-none) + (cd build/wasm32/gcc; ../../../src/gcc/configure CFLAGS="-Os" CXXFLAGS="-Os" --target=wasm32-unknown-none --disable-libatomic --disable-libgomp --disable-libquadmath --enable-explicit-exception-frame-registration --disable-libssp --prefix=$(PWD)/wasm32-unknown-none) build/wasm32/gcc-testsuite/site.exp: | build $(MKDIR) $(dir $@)