From ad9559e3e23ab32c27dc62374f040330e25f24eb Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 28 Jul 2021 14:35:23 +0200 Subject: [PATCH] [tests] Make AOTS update.py work on macOS Use C++ compiler and make sure C++11 is used. --- test/shaping/data/aots/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/shaping/data/aots/update.py b/test/shaping/data/aots/update.py index 870c9d1f6..d3b545596 100755 --- a/test/shaping/data/aots/update.py +++ b/test/shaping/data/aots/update.py @@ -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')