Question about :execute {pass}
Scott Witscher <switsche-+/W+9+QloQG75v1z/[email protected]>
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
First let me say that AAP is very cool stuf. It solves many of the
problems that I have with other build systems.
I have a question about the behavior of the :execute function. When I
use the {pass} option the execute command does not set variables that
are specified on the :execute command line. This does work without
the {pass} option. Is this the intended behavior or is this a bug?
When I run aap on the example below I get the following output.
> aap
-DFOO
-DBAR
> aap bad
Aap: Error in recipe "/tmp/aaptest/main.aap" line 2: NameError: name 'vary' is not defined
Any suggestions?
Thanks,
Scott Witscher
Intel Corporation
# main.aap
:variant vary
foo
DEFINES = -DFOO
bar
DEFINES = -DBAR
*
build:
:print $DEFINES
all:
:execute main.aap build vary=foo
:execute main.aap build vary=bar
bad:
:execute {pass} main.aap build vary=foo
:execute {pass} main.aap build vary=bar
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf