mirror of
https://git.checksum.fail/alec/slon.git
synced 2025-12-08 03:59:56 +02:00
Meta: Update scripts/build-all
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python3
|
||||
#!/usr/bin/python3 -u
|
||||
from pathlib import Path
|
||||
import glob
|
||||
import os
|
||||
@@ -22,9 +22,9 @@ jakt_runtime_path = home_path + 'cloned/jakt/runtime'
|
||||
jakt_lib_path = home_path + 'cloned/jakt/build/lib/x86_64-unknown-linux-unknown/'
|
||||
|
||||
qemu_slipstream_iso_file = project_path + 'build/isoc/bootable.iso'
|
||||
qemu_virtio_disk_path = home_path + 'virtio-disk.qcow2'
|
||||
qemu_virtio_disk_path = home_path + 'slon/virtio-disk.qcow2'
|
||||
|
||||
qemu_bin_path = home_path + "/Programs/qemu-9.1.2/build/qemu-system-x86_64"
|
||||
qemu_bin_path = "qemu-system-x86_64"
|
||||
qemu_display = "-display sdl,grab-mod=rctrl"
|
||||
|
||||
templeos_iso_file = home_path + 'iso/TempleOS.ISO'
|
||||
@@ -84,7 +84,7 @@ def transpile_net_to_sepples():
|
||||
def build_net():
|
||||
print("build-all: build-net")
|
||||
build_specific_options = '-Wno-invalid-offsetof -Wl,--section-start=.text=0x1404000 -Wl,--section-start=.plt=0x1402020 -no-pie'
|
||||
res = os.system('cd ' + project_path + 'build/net && clang++-19 ' + build_specific_options + ' -O3 -I ' + jakt_runtime_path + ' -I ' + project_path + '/src/libtemple -fcolor-diagnostics -std=c++20 -fno-exceptions -Wno-user-defined-literals -Wno-deprecated-declarations -Wno-parentheses-equality -Wno-unqualified-std-cast-call -Wno-unknown-warning-option -Wno-int-to-pointer-cast -mno-red-zone -o ../bin/net *.cpp ../lib/libtemple.so ' + jakt_lib_path + 'libjakt_runtime_x86_64-unknown-linux-unknown.a ' + jakt_lib_path + 'libjakt_main_x86_64-unknown-linux-unknown.a && cd .. && rm -rf net')
|
||||
res = os.system('cd ' + project_path + 'build/net && clang++-20 ' + build_specific_options + ' -O3 -I ' + jakt_runtime_path + ' -I ' + project_path + '/src/libtemple -fcolor-diagnostics -std=c++20 -fno-exceptions -Wno-user-defined-literals -Wno-deprecated-declarations -Wno-parentheses-equality -Wno-unqualified-std-cast-call -Wno-unknown-warning-option -Wno-int-to-pointer-cast -mno-red-zone -o ../bin/net *.cpp ../lib/libtemple.so ' + jakt_lib_path + 'libjakt_runtime_x86_64-unknown-linux-unknown.a ' + jakt_lib_path + 'libjakt_main_x86_64-unknown-linux-unknown.a && cd .. && rm -rf net')
|
||||
if res:
|
||||
raise ValueError("build-all: step 'build-net' failed, error code " + str(res))
|
||||
|
||||
@@ -199,4 +199,4 @@ def build_all():
|
||||
generate_slipstream_iso_file()
|
||||
run()
|
||||
|
||||
build_all()
|
||||
build_all()
|
||||
|
||||
Reference in New Issue
Block a user