HaxeFoundation / HaxeFoundation/haxe
Compiler.exclude + compiler cache bug
Open
documentation
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
When using `--macro exclude('package')` with compiler cache, this will cause problems with inline constructor. First compilation works, but then next one (if the file using the inline constructor changes) will error with `Extern constructor could not be inlined`
Here's a reproducible example:
```haxe
class Main {
static function main() {
new h2d.col.Point();
}
}
```
Compile with:
```
haxe --connect 6666 -js main.js -main Main -lib heaps --macro exclude('h2d')
touch Main.hx
haxe --connect 6666 -js main.js -main Main -lib heaps --macro exclude('h2d')
````
Contributor guide
Assessment
This issue has not been assessed yet.