Skip to content

Commit

Permalink
Merge pull request #56 from SimonIT/windows-arm-flags
Browse files Browse the repository at this point in the history
fix: Remove unsupported compiler flags
  • Loading branch information
PokeMMO committed Dec 28, 2023
2 parents 3031838 + 9c99740 commit 8656080
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,19 +180,19 @@ public static BuildTarget newDefaultTarget (Os type, Architecture.Bitness bitnes
if (type == Os.Windows && architecture == Architecture.ARM && bitness == Architecture.Bitness._32) {
// Windows ARM 32-Bit
BuildTarget target = new BuildTarget(Os.Windows, Architecture.Bitness._32, new String[] {"**/*.c"}, new String[0], new String[] {"**/*.cpp"},
new String[0], new String[0], "armv7-w64-mingw32-", "-c -Wall -O2 -mfpmath=sse -msse2 -fmessage-length=0 -m32",
"-c -Wall -O2 -mfpmath=sse -msse2 -fmessage-length=0 -m32",
"-Wl,--kill-at -shared -m32 -static -static-libgcc -static-libstdc++");
new String[0], new String[0], "armv7-w64-mingw32-", "-c -Wall -O2 -fmessage-length=0",
"-c -Wall -O2 -fmessage-length=0",
"-Wl,--kill-at -shared -static -static-libgcc -static-libstdc++");
target.architecture = Architecture.ARM;
return target;
}

if (type == Os.Windows && architecture == Architecture.ARM && bitness == Architecture.Bitness._64) {
// Windows ARM 64-Bit
BuildTarget target = new BuildTarget(Os.Windows, Architecture.Bitness._64, new String[] {"**/*.c"}, new String[0], new String[] {"**/*.cpp"},
new String[0], new String[0], "aarch64-w64-mingw32-", "-c -Wall -O2 -mfpmath=sse -msse2 -fmessage-length=0 -m64",
"-c -Wall -O2 -mfpmath=sse -msse2 -fmessage-length=0 -m64",
"-Wl,--kill-at -shared -static -static-libgcc -static-libstdc++ -m64");
new String[0], new String[0], "aarch64-w64-mingw32-", "-c -Wall -O2 -fmessage-length=0",
"-c -Wall -O2 -fmessage-length=0",
"-Wl,--kill-at -shared -static -static-libgcc -static-libstdc++");
target.architecture = Architecture.ARM;
return target;
}
Expand Down

0 comments on commit 8656080

Please sign in to comment.