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; end Naming;
package Compiler is 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 Compiler;
end Box2d_contrib; end Box2d_contrib;

View File

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

View File

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