Open xpac27 opened 8 years ago
Ninja doesnt use any env variables (except NINJA_STATUS
to control progress reporting), neither buildfox does.
Ninja rationale on that - ninja-files generator should support any env variables that are needed and generate corresponding ninja file.
I think we can handle it in buildfox - with syntax being close to your proposal. We should also include some sane and useful rules from the start (eg. usual CXX stuff, etc).
Yeah, we should do it, maybe just pass all env variables to buildfox space (before everything else) and be done with it :) Plus also related to #179 in a way.
If I do:
Then the executable used in
build.ninja
is stillclang
. Am I doing something wrong? Is there a way I could use the value of CXX in bybuild.fox
file in order to do something likecxx = $CXX
? Or could it be handled by buildfox?