From 9d08b9e61d48803d9c54a6921d573f974441ac42 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Tue, 14 Apr 2026 23:31:04 +0200 Subject: Reorganizes C source files --- salis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'salis.py') 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) -- cgit v1.2.1