Skip to content

Commit 8087f6a

Browse files
LucasCholletalimpfard
authored andcommitted
jakttest: Pass cppinclude to the jakt executable too
1 parent 6f6c9e9 commit 8087f6a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

jakttest/run_one.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ def run_regular_test(params: RegularTestParams):
104104
"-R",
105105
params.runtime_path_for_stdlib,
106106
params.cpp_export_gen,
107+
"-I",
108+
params.cpp_include
107109
],
108110
check=True,
109111
stderr=stderr,
@@ -127,7 +129,7 @@ def run_regular_test(params: RegularTestParams):
127129
"-Wno-user-defined-literals",
128130
"-Wno-deprecated-declarations",
129131
"-Iruntime",
130-
params.cpp_include,
132+
f"-I{params.cpp_include}",
131133
params.cpp_export_include,
132134
"-DJAKT_CONTINUE_ON_PANIC",
133135
"-o",
@@ -246,7 +248,7 @@ def main():
246248
relevant_cpp_files = [Path(test_file.parent, x).resolve() for x in args.cpp_link.split(":") if len(x) > 0]
247249

248250
if args.cpp_include:
249-
cpp_include = f"-I{Path(test_file.parent, args.cpp_include)}"
251+
cpp_include = f"{Path(test_file.parent, args.cpp_include)}"
250252

251253
if args.cpp_export_dir:
252254
path = temp_dir / args.cpp_export_dir

0 commit comments

Comments
 (0)