diff options
-rwxr-xr-x | src/main/native/build_windows_jni.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/native/build_windows_jni.sh b/src/main/native/build_windows_jni.sh index ceb777e0a5..d10218fe78 100755 --- a/src/main/native/build_windows_jni.sh +++ b/src/main/native/build_windows_jni.sh @@ -60,9 +60,10 @@ done # batch file. We can't make that have an effect on a bash instance, so # generate a batch file that invokes it. cat > "${VSTEMP}/windows_jni.bat" <<EOF -call "${VSVARS}" amd64 -set TMP=$(cygpath -a -w "${VSTEMP}") -CL /EHsc /LD /Fe:"$(cygpath -a -w ${DLL})" /I "${JAVAINCLUDES}" /I "${JAVAINCLUDES}/win32" /I . ${WINDOWS_SOURCES[*]} +@echo OFF +@call "${VSVARS}" amd64 +@set TMP=$(cygpath -a -w "${VSTEMP}") +@CL /O2 /EHsc /LD /Fe:"$(cygpath -a -w ${DLL})" /I "${JAVAINCLUDES}" /I "${JAVAINCLUDES}/win32" /I . ${WINDOWS_SOURCES[*]} EOF # Invoke the file and hopefully generate the .DLL . |