mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update amalgamate.py
This commit is contained in:
parent
cdcdded9a3
commit
3f7435263a
@ -81,10 +81,9 @@ with open("amalgamated/main.cpp", "wt", encoding='utf-8') as f:
|
|||||||
f.write(text)
|
f.write(text)
|
||||||
|
|
||||||
if sys.platform in ['linux', 'darwin']:
|
if sys.platform in ['linux', 'darwin']:
|
||||||
ok = os.system("clang++ -o main amalgamated/main.cpp --std=c++17 -stdlib=libc++ -ldl")
|
ok = os.system("clang++ -o main amalgamated/main.cpp -O1 --std=c++17 -stdlib=libc++")
|
||||||
if ok == 0:
|
if ok == 0:
|
||||||
print("Test build success!")
|
print("Test build success!")
|
||||||
os.remove("main")
|
|
||||||
|
|
||||||
print("amalgamated/pocketpy.h")
|
print("amalgamated/pocketpy.h")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user