pysics.box2d.library: Add "-O2" flags to compile switches.

This commit is contained in:
Rod Kay
2025-05-24 04:57:47 +10:00
parent de6ab2d36e
commit 37efda89e4
3 changed files with 7 additions and 3 deletions

View File

@@ -21,7 +21,9 @@ is
end Naming;
package Compiler is
for Default_Switches ("c++") use ("-g", "-I../../contrib/include");
for Default_Switches ("c++") use ("-g",
"-O2",
"-I../../contrib/include");
end Compiler;
end Box2d_contrib;

View File

@@ -23,7 +23,8 @@ is
package Binder renames Lace_shared.Binder;
package Compiler is
for Default_Switches ("c++") use ("-g",
for Default_Switches ("c++") use ("-g",
"-O2",
"-Wno-return-type-c-linkage",
"-I../../../c_math/source/c",
"-I../../contrib/include");

View File

@@ -22,7 +22,8 @@ is
end Naming;
package Compiler is
for Default_Switches ("c++") use ("-g",
for Default_Switches ("c++") use ("-g",
"-O2",
"-fPIC",
"-I../../../c_math/source/c",
"-Wno-return-type-c-linkage");