From 6240dc8e304e33b36cf97b08dafd219687ae2622 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Tue, 19 Nov 2024 04:35:16 +0100 Subject: [PATCH] [build] Always use -O3 for WASM AOT builds --- Directory.Build.props | 8 +++----- Makefile | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 00cb22c1..7bbb7daf 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -49,10 +49,8 @@ true - <_EmccOptLevel Condition="'$(WasmOptLevel)' == ''">z - <_WasmOptLevel Condition="'$(WasmOptLevel)' == ''">2 - -O$(_EmccOptLevel) - -O$(_WasmOptLevel) - -O$(_WasmOptLevel) + -O3 + -O3 + -O3 diff --git a/Makefile b/Makefile index 74b2cfd1..7752abd7 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ TEST_CMD = ${TL_ENV} ${DOTNET_CMD} test --no-build --nologo BUILD_FLAGS = -p:EnableLibVips=${VIPS} -p:BundleNativeDeps=${BUNDLE_NATIVE} -p:DependencyVulnsAsError=${DEP_VULN_WERROR} PUBLISH_FLAGS = -p:EnableAOT=${AOT} -p:DeterministicSourcePaths=true -p:ContinuousIntegrationBuild=true ${BUILD_FLAGS} PUBLISH_FLAGS_EXT = ${PUBLISH_RIDARG} -o publish/${TARGETRID} ${PUBLISH_FLAGS} -RELEASE_FLAGS = -r ${TARGETRID} -o release/${TARGETPLATFORM} ${PUBLISH_FLAGS} -p:WasmOptLevel=z -p:WasmBuildNative=true +RELEASE_FLAGS = -r ${TARGETRID} -o release/${TARGETPLATFORM} ${PUBLISH_FLAGS} TARGETRID = $(TARGETPLATFORM:linux-glibc-%=linux-%) PUBLISH_RIDARG = $(if $(TARGETRID),-r $(TARGETRID),)