[tests] Make AOTS update.py work on macOS
Use C++ compiler and make sure C++11 is used.
This commit is contained in:
parent
d84efca312
commit
ad9559e3e2
|
@ -7,7 +7,7 @@ os.chdir (os.getenv ('srcdir', os.path.dirname (__file__)))
|
|||
git = shutil.which ('git'); assert git
|
||||
make = shutil.which ('make'); assert make
|
||||
java = shutil.which ('java'); assert java
|
||||
gcc = shutil.which ('gcc'); assert gcc
|
||||
cxx = shutil.which ('c++'); assert cxx
|
||||
|
||||
pull = False
|
||||
if not os.path.exists ('aots'):
|
||||
|
@ -21,7 +21,7 @@ if pull or 'pull' in sys.argv:
|
|||
|
||||
shutil.copy ('hb-aots-tester.cpp', 'aots/harfbuzz')
|
||||
# TODO: remove *nix assumptions
|
||||
subprocess.run ([gcc, '-Wno-narrowing', 'aots/harfbuzz/hb-aots-tester.cpp',
|
||||
subprocess.run ([cxx, '-std=c++11', '-Wno-narrowing', 'aots/harfbuzz/hb-aots-tester.cpp',
|
||||
'../../../../src/harfbuzz.cc', '-DHB_NO_MT', '-fno-exceptions', '-lm',
|
||||
'-I../../../../src', '-o', 'aots/harfbuzz/aots'], check=True)
|
||||
shutil.rmtree ('tests')
|
||||
|
|
Loading…
Reference in New Issue