Skip to content

Commit

Permalink
Merge pull request #2868 from dgovil/boost_cxx17
Browse files Browse the repository at this point in the history
Boost: Use CXX17

(Internal change: 2317376)
  • Loading branch information
pixar-oss committed Mar 1, 2024
2 parents 990aba9 + 1a5cff7 commit 6ee6c7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build_scripts/build_usd.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ def Run(cmd, logCommandOutput = True):
if verbosity < 3:
with open("log.txt", "r") as logfile:
Print(logfile.read())
raise RuntimeError("Failed to run '{cmd}'\nSee {log} for more details."
.format(cmd=cmd, log=os.path.abspath("log.txt")))
raise RuntimeError("Failed to run '{cmd}' in {path}.\nSee {log} for more details."
.format(cmd=cmd, path=os.getcwd(), log=os.path.abspath("log.txt")))

@contextlib.contextmanager
def CurrentWorkingDirectory(dir):
Expand Down Expand Up @@ -788,7 +788,7 @@ def InstallBoost_Helper(context, force, buildArgs):
primaryArch, secondaryArch)

if macOSArch:
bootstrapCmd += " cxxflags=\"{0}\" " \
bootstrapCmd += " cxxflags=\"{0} -std=c++17 -stdlib=libc++\" " \
" cflags=\"{0}\" " \
" linkflags=\"{0}\"".format(macOSArch)
bootstrapCmd += " --with-toolset=clang"
Expand Down Expand Up @@ -904,7 +904,7 @@ def InstallBoost_Helper(context, force, buildArgs):
# https://github.com/boostorg/container/commit/79a75f470e75f35f5f2a91e10fcc67d03b0a2160
b2_settings.append(f"define=BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT=0")
if macOSArch:
b2_settings.append("cxxflags=\"{0}\"".format(macOSArch))
b2_settings.append("cxxflags=\"{0} -std=c++17 -stdlib=libc++\"".format(macOSArch))
b2_settings.append("cflags=\"{0}\"".format(macOSArch))
b2_settings.append("linkflags=\"{0}\"".format(macOSArch))

Expand Down

0 comments on commit 6ee6c7c

Please sign in to comment.