diff options
author | 2016-12-13 22:24:01 +0000 | |
---|---|---|
committer | 2016-12-14 20:18:17 +0000 | |
commit | 7a131776deb2c77ca0314167e4a941ca8182f8b7 (patch) | |
tree | 1779d7dd07cc1af94416633c9513387086b79ecb /src | |
parent | df036962c94eeac0ccb6d1359d6f9681195b45ef (diff) |
Windows, JNI: build the DLL with /O2 optimization
--
PiperOrigin-RevId: 141939490
MOS_MIGRATED_REVID=141939490
Diffstat (limited to 'src')
-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 . |