cake icon indicating copy to clipboard operation
cake copied to clipboard

how to define macro in cake options?

Open anlongfei opened this issue 4 years ago • 2 comments

just like this below: gcc -DUSE_** test.cpp -o test I want to define macro maybe like this: cake --macro=USE_,USE

I check cake source, and found the options supported only this: `Usage: run.py [options] *

Options: -h, --help Show this help message and exit. -v, --version Print the current version of Cake and exit. --args=FILE Path to the args.cake file to use. --config=FILE Path to the config.cake configuration file to use. --debug=KEYWORDS Set features to debug, eg: 'reason,run,script,scan,time'. -s, --silent, --quiet Suppress printing of all Cake messages, warnings and errors. -f, --force Force rebuild of every target. -jJOBCOUNT, --jobs=JOBCOUNT Number of simultaneous jobs to execute. -k, --keep-going Keep building even in the presence of errors. -eCOUNT, --max-errors=COUNT Halt the build after a certain number of errors. -l, --list-targets List named targets in specified build scripts. -p, --projects Create projects instead of building a variant. --clang-install-prefix=PATH Path where clang has been installed. --clang-executable=FILE Name or full-path of clang executable to compile with --libcxx-install-prefix=PATH Path where libc++ has been installed. Defaults to value of --clang-install-prefix --gcc-executable=FILE Name or full-path of g++ executable to compile with`

anlongfei avatar Dec 11 '19 13:12 anlongfei