Skip to content

Commit

Permalink
Remove flags
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirvanSarkar committed Oct 31, 2024
1 parent 501f761 commit 5ae8e22
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions buildSrc/win.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ if (IS_DEBUG_NATIVE) ccDebugFlags += "/FS"
def sourceDateEpoch = System.getenv("SOURCE_DATE_EPOCH")

// Common set of flags for all modules
def ccFlags = ["/nologo", "/W3", "/EHsc", "/c",
"/D_STATIC_CPPLIB", "/D_DISABLE_DEPRECATE_STATIC_CPPLIB", "/DINLINE=__inline",
def ccFlags = ["/nologo", "/W3", "/EHsc", "/c", "/DINLINE=__inline",
"/DUNICODE", "/D_UNICODE", "/DWIN32", "/DIAL", "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN",
"/I$JDK_HOME/include", "/I$JDK_HOME/include/win32",
ccDebugFlags].flatten();
Expand All @@ -137,9 +136,6 @@ if (sourceDateEpoch != null) {
linkFlags.add("/experimental:deterministic")
}

// Remove C++ static linking
ccFlags -= ["/D_STATIC_CPPLIB", "/D_DISABLE_DEPRECATE_STATIC_CPPLIB"]

ext.WINDOWS_NATIVE_COMPILE_ENVIRONMENT = [
"VCINSTALLDIR" : WINDOWS_VS_VCINSTALLDIR,
"VSINSTALLDIR" : WINDOWS_VS_VSINSTALLDIR,
Expand Down

0 comments on commit 5ae8e22

Please sign in to comment.