diff --git a/tools/make_game.py b/tools/make_game.py index 8698ae0d..5343e50e 100644 --- a/tools/make_game.py +++ b/tools/make_game.py @@ -1440,7 +1440,7 @@ def runtime_cmd(clang, clangxx, inc, level=0, fast=None, msys=None, first=()): cc = [str(fast), f'--sysroot={msys}'] if guest and fast else [str(clangxx if cpp else clang)] # -fdeclspec: third_party/ffx_api/ffx_api.h declares its entry points __declspec(dllexport) unconditionally declspec = ['-fdeclspec'] if cpp and not WIN else [] - return [*cc, '-c', '-std=gnu++17' if cpp else '-std=gnu11', '-O1' if guest else '-O2', + return [*cc, '-c', '-std=gnu++17' if cpp else '-std=gnu11', guest_opt if guest else '-O2', *march, '-fno-strict-aliasing', '-w', *declspec, *([] if guest else first), *inc, '-o', str(dst), str(src)] return cmd_for