Skip to content

Commit 6d8345e

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

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

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

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

0 commit comments

Comments
 (0)