Commit Graph

455 Commits

Author SHA1 Message Date
Ross Bayer
695ded24d4 Move legacy argparser (#11872)
* Implemented a (mostly) comprehensive test suite for the argument parser (ab)using metaclasses to dynamically generate unit-tests for each valid argument and preset.

* Fixed failing defaults test for build_ninja.

* Added new HelpOption and IgnoreOption classes for generating tests.

* Converted default value test into individual generated tests which should give better output in case the default tests fail.
2017-09-15 01:05:06 -07:00
Ross Bayer
9847f6a589 New defaults module for build_swift argument parser (#11911)
* Added a new defaults module for configurable constant values used by the argument parser to configure the default build behavior.

* Re-ordered imports in order to satisfy python linter.
2017-09-14 12:01:10 -07:00
Ross Bayer
6d1604496c Removed the offending duplicate ninja_build code that was masking the real logic for decided when to use the system ninja or to build it from source. (#11919) 2017-09-14 10:45:11 -07:00
Ross Bayer
d4d35acbd0 Move build-script apply default arguments into separate module (#11882)
* Moved the default argument application logic to the new driver_arguments module in preparation for the larger argument parsing refactor.

* Re-ordered imports in order to satisfy python linter.
2017-09-13 17:09:49 -07:00
Ross Bayer
a66a27db9f Moved the argument parsing logic from the default main function in build-script into a separate module. (#11880) 2017-09-12 16:38:11 -07:00