Skip to content

Commit 079ac9f

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

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

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

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

0 commit comments

Comments
 (0)