Skip to content

[tool] Make hlc templates compatible with haxe ci#916

Merged
yuxiaomao merged 7 commits intoHaxeFoundation:masterfrom
tobil4sk:fix/hlc-build-improvements
Mar 26, 2026
Merged

[tool] Make hlc templates compatible with haxe ci#916
yuxiaomao merged 7 commits intoHaxeFoundation:masterfrom
tobil4sk:fix/hlc-build-improvements

Conversation

@tobil4sk
Copy link
Member

Adds some fixes and quality of life improvements to allow using the normal hlc templates in haxe ci:

  • -D hlgen.makefile now sets a default template (vs2022 for windows, make otherwise)
  • -D hlgen.makefile.jumbo is equivalent to -D hlgen.makefile.jumbo=true
  • Support Makefile jumbo build (for mingw make this is better)
  • Set rpath in makefile template
  • Use -j for parallel build with makefile
  • Use an objects.txt for the makefile, because mingw on windows cannot handle long arg lists.
  • Avoid vs2022 template making a directory with the same name as the solution (this clashed with the exe name). Not sure why this changed since vs2019

Builds upon #913 and #914.

This allows setting `-D hlgen.makefile.jumbo` to enable it
Gcc on mingw fails due to too many arguments on very large builds.
It would create a folder like `main/x64/Release` instead of just using
`x64/Release`. This caused issues because main is both a directory and
main.exe is the executable.

Now it matches vs2019, and explicitly places it in `x64/Release`.
@yuxiaomao yuxiaomao merged commit 1ebb3c3 into HaxeFoundation:master Mar 26, 2026
30 checks passed
@tobil4sk tobil4sk deleted the fix/hlc-build-improvements branch March 26, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants