mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
00637c2595
commit
549ed0c5f1
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user