Skip to content

[tool] Support additional defines passed to hlc build#913

Merged
yuxiaomao merged 1 commit intoHaxeFoundation:masterfrom
tobil4sk:feature/build-tool-flags
Mar 23, 2026
Merged

[tool] Support additional defines passed to hlc build#913
yuxiaomao merged 1 commit intoHaxeFoundation:masterfrom
tobil4sk:feature/build-tool-flags

Conversation

@tobil4sk
Copy link
Copy Markdown
Member

@tobil4sk tobil4sk commented Mar 20, 2026

This way it is possible to generate hlc code with haxe, and then generate multiple templates from hlc.json.

For example:

haxe --main Main --hl bin/main.c
haxelib run hashlink build bin/main.c -D hlgen.makefile=make
haxelib run hashlink build bin/main.c -D hlgen.makefile=vs2022

This would be useful for example in haxe CI, where we want to test both gcc and msvc hlc builds.

This way it is possible to generate hlc code with haxe, and then
generate multiple templates from hlc.json.
@yuxiaomao yuxiaomao merged commit d666615 into HaxeFoundation:master Mar 23, 2026
30 checks passed
@tobil4sk tobil4sk deleted the feature/build-tool-flags branch March 23, 2026 13:21
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