Skip to content

Commit 560c88f

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

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

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

25212522
# Windows ARM64 requires oneTBB. Since oneTBB is a non-standard option for the

0 commit comments

Comments
 (0)