diff options
| author | ruki <[email protected]> | 2025-09-18 22:56:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-09-18 22:56:46 +0800 |
| commit | 0ea9fd74dc21820c7ed41e81c833dceac6243a08 (patch) | |
| tree | 0498c3a56693b0a129ca48cc4b40d25087d17bb1 | |
| parent | ec133a69c703b26c8ae4ef61265287db604b9897 (diff) | |
improve known flags
| -rw-r--r-- | xmake/modules/core/tools/gcc/has_flags.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc/has_flags.lua b/xmake/modules/core/tools/gcc/has_flags.lua index b56596e3e..4d001ef6e 100644 --- a/xmake/modules/core/tools/gcc/has_flags.lua +++ b/xmake/modules/core/tools/gcc/has_flags.lua @@ -48,7 +48,7 @@ function _check_from_knownargs(flags, opt, islinker) local flag = flags[1] local known_flags = _g.known_flags if known_flags == nil then - known_flags = hashset.from({"-O0", "-O1", "-O2", "-O3", "-g"}) + known_flags = hashset.from({"-O", "-O0", "-O1", "-O2", "-O3", "-Os", "-g"}) _g.known_flags = known_flags end if known_flags:has(flag) then |
