Skip to content

Commit cb1cfd5

Browse files
committed
SConstruct : Disable Windows inline optimization
Removing unreferenced data or functions that only have internal linkage causes errors when USD tries to load a plugin such as the SCC loader in IECoreUSD. See PixarAnimationStudios/OpenUSD#1095 for more discussion.
1 parent c8c04b3 commit cb1cfd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SConstruct

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3046,6 +3046,7 @@ if usdEnv["USD_LIB_PREFIX"] :
30463046
usdEnvAppends = {
30473047
"CXXFLAGS" : [
30483048
"-Wno-deprecated" if env["PLATFORM"] != "win32" else "",
3049+
"/Zc:inline-" if env["PLATFORM"] == "win32" else "",
30493050
"-DIECoreUSD_EXPORTS",
30503051
systemIncludeArgument, "$USD_INCLUDE_PATH",
30513052
systemIncludeArgument, "$PYTHON_INCLUDE_PATH",

0 commit comments

Comments
 (0)