This commit is contained in:
BLUELOVETH 2023-07-07 16:54:34 +08:00
parent 00637c2595
commit 549ed0c5f1

View File

@ -80,7 +80,7 @@ text = text.replace('#include "pocketpy/pocketpy.h"', '#include "pocketpy.h"')
with open("amalgamated/main.cpp", "wt", encoding='utf-8') as f:
f.write(text)
if sys.platform == 'linux':
if sys.platform in ['linux', 'darwin']:
ok = os.system("clang++ -o pocketpy amalgamated/main.cpp --std=c++17 -stdlib=libc++")
if ok == 0:
print("Test build success!")
@ -95,7 +95,7 @@ for i in ["include/pocketpy/export.h", "c_bindings/pocketpy_c.h", "c_bindings/po
with open("amalgamated/pocketpy.cpp", "wt", encoding='utf-8') as f:
content = '\n\n'.join(content)
content = content.replace('#include "export.h"', '')
content = content.replace('#include "pocketpy/export.h"', '')
content = content.replace('#include "pocketpy_c.h"', '')
f.write(content)