Skip to content

Commit b4bdb95

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

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
@@ -2488,9 +2488,10 @@ def ForceBuildDependency(self, dep):
24882488
PrintError("Draco plugin can not be enabled for monolithic build on Windows")
24892489
sys.exit(1)
24902490

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

24962497
# Error out if user enables Vulkan support but env var VULKAN_SDK is not set.

0 commit comments

Comments
 (0)