-
-
Notifications
You must be signed in to change notification settings - Fork 661
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inconsistencies with define flags (#10365)
* 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`
- Loading branch information
Showing
62 changed files
with
797 additions
and
303 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.