Skip to content

Commit

Permalink
try x86
Browse files Browse the repository at this point in the history
  • Loading branch information
electronstudio committed Dec 2, 2024
1 parent 16bfb31 commit 71c41a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mv src/com/raylib/RaylibConfig.class gen/com/raylib
cp *.h gen/com/raylib
cd gen
echo "STEP 2 - compile Raylib.java"
java -jar ../javacpp.jar -nodelete com/raylib/Raylib.java -Dplatform.compiler.foo='-DPHYSAC_IMPLEMENTATION -DRAYGUI_IMPLEMENTATION -std=c++11'
java -jar ../javacpp.jar -nodelete com/raylib/Raylib.java -Dplatform.compiler.foo='-DPHYSAC_IMPLEMENTATION -DRAYGUI_IMPLEMENTATION -O3 -std=c++11' -Dplatform.compiler.foo2='-march=i686 -m32'
# /Oi /O2 /MD /LD /link /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /NODEFAULTLIB:MSVCRTD'
if [ $? -ne '0' ]; then
echo "Fix this before trying again"
Expand Down
3 changes: 2 additions & 1 deletion src/com/raylib/RaylibConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
@Platform(
value = {"linux-x86"},
linkpath = {"/usr/lib/i386-linux-gnu"},
link = {"X11", "raylib"}
link = {"X11", "raylib"},
compiler = {"!default","foo","foo2"}
),
@Platform(
value = {"linux-arm64"},
Expand Down

0 comments on commit 71c41a4

Please sign in to comment.