-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Variable and command substitution #5
Comments
use bash syntax! CC='g++'
test:
${CC} foo.cc |
Leaving this open for others. |
CC='g++'
test:
${CC} foo.cc Tested on latest bake(v0.6.1) the variable was not been populated in bash environment with above Bakefile. Anyway it could be done with: test:
CC='g++'
${CC} foo.cc |
might need to be exported. will experiment. |
things are in a state of flux :) |
This currently works! test:
${CC} foo.cc
CC='g++' Not when it's above the tasks. Should be easy to correct (need some regex or something!). |
Now, the following works: CC='g++'
test:
${CC} foo.cc ✨ 🍰 ✨ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Makefile we could substitute a command with an variable, and running with alternatives:
make CC=clang++ test
:Though this is related to Makefile syntax, it might still be worth to consider it. XD
The text was updated successfully, but these errors were encountered: