aboutsummaryrefslogtreecommitdiff
path: root/salis.py
diff options
context:
space:
mode:
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)