Skip to content

Commit 90ef24e

Browse files
committed
build_usd.py: allow oneTBB and Embree to be used together when Embree 4.x or later is selected
1 parent 64610ce commit 90ef24e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build_scripts/build_usd.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2428,9 +2428,10 @@ def ForceBuildDependency(self, dep):
24282428
PrintError("Draco plugin can not be enabled for monolithic build on Windows")
24292429
sys.exit(1)
24302430

2431-
# The versions of Embree we currently support do not support oneTBB.
2432-
if context.buildOneTBB and context.buildEmbree:
2433-
PrintError("Embree support cannot be enabled when building against oneTBB")
2431+
# When building with both oneTBB and Embree, a 4.x version of Embree must be
2432+
# used.
2433+
if context.buildOneTBB and (context.buildEmbree and context.embreeMajorVersion < 4):
2434+
PrintError("Embree 4.x or later must be selected when building against oneTBB")
24342435
sys.exit(1)
24352436

24362437
# Error out if user explicitly enabled components which aren't

0 commit comments

Comments
 (0)