From cc715e6692c4b781caed909415cd77e3479a4249 Mon Sep 17 00:00:00 2001 From: Varada M Date: Wed, 18 Mar 2026 08:21:59 -0400 Subject: [PATCH] Enable -03 optimization in NativeCompilation.gmk --- make/NativeCompilation.gmk | 2 ++ test/test-support/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/make/NativeCompilation.gmk b/make/NativeCompilation.gmk index daf9e9a5..0aec1e41 100644 --- a/make/NativeCompilation.gmk +++ b/make/NativeCompilation.gmk @@ -82,6 +82,8 @@ else CC_NAME := gcc LINK_NAME := gcc + CFLAGS += -O3 + LDFLAGS += -O3 ifneq ($(SYSROOT),) CFLAGS += --sysroot=$(SYSROOT) endif diff --git a/test/test-support/CMakeLists.txt b/test/test-support/CMakeLists.txt index 9a6d6e31..bdb0dd7c 100644 --- a/test/test-support/CMakeLists.txt +++ b/test/test-support/CMakeLists.txt @@ -27,7 +27,7 @@ foreach(TEST_LIB ${TEST_LIBS}) ) # Link against libm to resolve sqrt() and other math symbols - find_library(LIBM, m) + find_library(LIBM m) if(LIBM) target_link_libraries(${LIB_NAME} ${LIBM}) endif()