From 9f77b7dc46d88580df2ce3b207d6b4ad92b4239f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 26 Feb 2025 17:11:10 +0300 Subject: [PATCH] scripts: waifulib: enable HLSDK -mtune only on GCC and Clang, and not on Android --- scripts/waifulib/compiler_optimizations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/waifulib/compiler_optimizations.py b/scripts/waifulib/compiler_optimizations.py index 750bea52..c3fb9990 100644 --- a/scripts/waifulib/compiler_optimizations.py +++ b/scripts/waifulib/compiler_optimizations.py @@ -254,7 +254,7 @@ def get_optimization_flags(conf): # this port don't have stack printing support cflags.remove('-fasynchronous-unwind-tables') - if conf.env.COMPILER_CC != 'msvc' and conf.env.COMPILER_CC != 'owcc': + if conf.env.COMPILER_CC == 'gcc' or conf.env.COMPILER_CC == 'clang' and conf.env.DEST_OS not in ['android']: # HLSDK by default compiles with these options under Linux # no reason for us to not do the same