Skip to content

Commit

Permalink
bootstrap: update flags for PhaserTNGBuilder
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
bkpoon committed Jan 3, 2025
1 parent 8f806c8 commit 51a719c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion libtbx/auto_build/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2157,7 +2157,16 @@ def add_tests(self):

def get_libtbx_configure(self):
configlst = super(PhaserTNGBuilder, self).get_libtbx_configure()
configlst.append('--enable_cxx11')
if '--enable_cxx11' in configlst:
configlst.remove('--enable_cxx11')
set_std = ['cxxstd' in conf for conf in configlst]
if set_std.count(True) == 0:
if platform.mac_ver()[-1] == 'arm64':
configlst.append('--cxxstd=c++14')
else:
configlst.append('--cxxstd=c++11')
if not self.isPlatformMacOSX():
configlst.append("--enable_openmp_if_possible=True")
return configlst

def get_codebases(self):
Expand Down

0 comments on commit 51a719c

Please sign in to comment.