Skip to content

Commit 14a83ed

Browse files
committed
Merge branch 'topic/lkql_jit/disable_warnings_as_errors' into 'master'
Disable strict native compilation when running native-image See merge request eng/libadalang/langkit-query-language!550
2 parents dbb5532 + 83cb8ca commit 14a83ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lkql_jit/standalone/make_native.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,13 @@ def look_for_files_in_env(files: list[str], env_var_name: str) -> dict[str, str]
133133
# Create the base Native-Image command
134134
cmd = [
135135
graal.native_image,
136+
"-H:+UnlockExperimentalVMOptions",
136137
"-cp",
137138
args.classpath,
138139
"--no-fallback",
139140
"--initialize-at-build-time",
140141
f"-Dpolyglot.engine.userResourceCache={tmp_path.as_posix()}",
142+
"-H:-StrictQueryCodeCompilation",
141143
*os_specific_options,
142144
]
143145

@@ -147,7 +149,6 @@ def look_for_files_in_env(files: list[str], env_var_name: str) -> dict[str, str]
147149
[
148150
"-g",
149151
"-Ob",
150-
"-H:+UnlockExperimentalVMOptions",
151152
"-H:-DeleteLocalSymbols",
152153
"-H:+SourceLevelDebug",
153154
"-H:+PreserveFramePointer",

0 commit comments

Comments
 (0)