Skip to content

Commit 1dfc6af

Browse files
committed
Boost: Use Headers instead of building when not required
When building USD without Python, OIIO or VDB, Boost libs aren't required. In this scenario, it is preferable to just copy over the headers instead and save some time and complexity. This also has a significant benefit that it allows the core USD build to be supported on platforms that Boost doesn't natively build on yet like iOS and visionOS. It means that the build_usd.py script doesn't need to carry as many patches to Boost itself if someone is just building the core USD library. This is similar to [PR 2914](PixarAnimationStudios#2914) but can short circuit the entire bootstrap and b2 process, which may still error on platforms that b2 doesn't understand.
1 parent b71bf91 commit 1dfc6af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build_scripts/build_usd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def InstallBoost_Helper(context, force, buildArgs):
758758

759759
headersOnly = not (context.buildOIIO or context.enableOpenVDB or context.buildPython)
760760

761-
with CurrentWorkingDirectory(DownloadURL(BOOST_URL, context, force,
761+
with CurrentWorkingDirectory(DownloadURL(BOOST_URL, context, force,
762762
dontExtract=dontExtract)):
763763
if headersOnly:
764764
# We don't need all the headers, so we elide some for space

0 commit comments

Comments
 (0)