aboutsummaryrefslogtreecommitdiff
path: root/salis.py
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-04-14 23:31:04 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-04-14 23:31:04 +0200
commit9d08b9e61d48803d9c54a6921d573f974441ac42 (patch)
tree5a24e494da413d6e0931543d32f44db57c0f3ebf /salis.py
parent1fde30da093ecea7e32d39e5446fbde4d1fabd27 (diff)
Reorganizes C source files
Diffstat (limited to 'salis.py')
-rwxr-xr-xsalis.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/salis.py b/salis.py
index 7167b03..8a174ca 100755
--- a/salis.py
+++ b/salis.py
@@ -224,7 +224,7 @@ if args.command in ["serve"]:
sqlx_defines = set()
sqlx_links = set()
- sqlx_flags.update({*args.compiler_flags.split(), "-shared", "-fPIC", "-Idata"})
+ sqlx_flags.update({*args.compiler_flags.split(), "-shared", "-fPIC", "-Icore"})
sqlx_defines.add(f"-DMVEC_SIZE={2 ** args.mvec_pow}ul")
if arch_vars.mvec_loop: sqlx_defines.add("-DMVEC_LOOP")
@@ -243,7 +243,7 @@ if args.command in ["serve"]:
sqlx_so = os.path.join(sqlx_tempdir.name, "render.so")
info("Building salis SQLite extension at:", sqlx_so)
- sqlx_build_cmd = [args.compiler, "data/render.c", "-o", sqlx_so]
+ sqlx_build_cmd = [args.compiler, "core/render.c", "-o", sqlx_so]
sqlx_build_cmd.extend(sqlx_flags)
sqlx_build_cmd.extend(sqlx_defines)
sqlx_build_cmd.extend(sqlx_links)
@@ -523,7 +523,7 @@ info("Created a temporary salis directory at:", tempdir.name)
salis_bin = os.path.join(tempdir.name, "salis_bin")
info("Building salis binary at:", salis_bin)
-build_cmd = [args.compiler, "core.c", "-o", salis_bin]
+build_cmd = [args.compiler, "core/salis.c", "-o", salis_bin]
build_cmd.extend(flags)
build_cmd.extend(sum(map(lambda include: ["-include", include], includes), []))
build_cmd.extend(defines)