Skip to content

Commit

Permalink
Add an early error msg when trying to debug hl/c
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Jan 10, 2025
1 parent e95c591 commit 240fd6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Extension.hx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class Extension {
if (config.program == null) {
config.program = file;
}
if (StringTools.endsWith(config.program, ".c")) {
reject('Plase use a HashLink/JIT configuration (found "${config.program}" instead).');
return;
}
config.classPaths = haxeConfig.classPaths.map(cp -> cp.path);
resolve(config);

Expand Down

0 comments on commit 240fd6f

Please sign in to comment.