Pass static options to the build
Currently there is no way to pass something other that defines through UDEFS/UASEFS to the Makefile
.
This however is problematic when one wants to set parameters for each build that should stay fix e.g. that the diagnostic output should be printed in json format (-fdiagnostics-format=json
).
This needs to be passed to the USE_OPT
parameter in the Makefile.
One solution could be by using a new tag in the replacement config:
MakeOptions:
USE_OPT: ['-O2', '-fstack-usage', '-fdiagnostics-format=json']
This is currently hardcoded in the Makefile factory and passed to every build.
Problem => Is it Ok to specify the same optimization parameters for each build?
Edited by galberding