-
-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't allow to define reserved flags via Compiler.define #8690
Don't allow to define reserved flags via Compiler.define #8690
Conversation
But hxnodejs doesn't define any reserved flags? |
|
But it's not being defined yet (HaxeFoundation/hxnodejs#59). That's |
Oh, right. Then it's safe to merge ) |
Still can't merge this becaus of this: Lines 37 to 39 in f9733e7
|
Ultimately the problem is that documentation generation conflates We can hack around this problem first by moving that |
- Error for `-D haxe-ver` solved more generally - Add temporary function to be removed for HaxeFoundation#8690 - Minor refactoring
- Error for `-D haxe-ver` solved more generally - Add temporary function to be removed for HaxeFoundation#8690 - Minor refactoring
* Fix inconsistency between - and _ in define.json * Remove unnecessary dash conversion define.json now already provides them with dashes so this manual conversion is no longer necessary. * Move `source-header` default value setting * Split function with bool parameter * Fix missing error when doing `-D haxe-ver` * Use underscore defines internally Move all define conversions to interfaces, and internally a flag is represented using the underscore version only. This prevents duplicate defines appearing in a bunch of places, and now there are no longer tiny differences in the effects of `-D flag-a` and `-D flag_a`. Same is true for macro functions for accessing defines. * Use existing functions for accessing defines * Remove duplicate definition of the `flash` define This is already done for every target in `Common.init_platform`. * Update documentation for `net-ver` compiler flag * Remove `dump_context` made redundant in bef481f * Clean up define outputs All internal outputs of defines are now in alphabetical order * Add tests for define flag conversions * Add tests for `-D no-deprecation-warnings` * Add tests for `-D source-header` * Test for duplicate defines in `hlc.json` & `Options.txt` * [hl] Fix `-D source-header` not working with hlc (#10376) * Add tests for `source-header` on hlc * Clean up - Error for `-D haxe-ver` solved more generally - Add temporary function to be removed for #8690 - Minor refactoring * Fix `--help-defines`
Given all the conflicts, the best course of action here is to close. #8689 is still open to track the original issue. |
Fixes #8689
Shouldn't be merged yet because it will break
hxnodejs
, which defines its flags viaCompiler.define()
:https://github.com/HaxeFoundation/hxnodejs/blob/2587ccbffa3cc032d7ecca28d299e7357993f536/extraParams.hxml#L1-L3