When building the command-line for compilations during tests, append to CFLAGS_EXTRAS and LD_EXTRAS to preserve switches set by the environment (i.e. for cross compiling to test on another platform).
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/plugins/builder_base.py | ||
---|---|---|
90 | Hmm, I think os.environ[k] might need to be escaped in case it contains ' or ". |
test/plugins/builder_base.py | ||
---|---|---|
102 | What is the agent that is going to be parsing this? If it is a posix shell, then the single quotes there don't work the way you expect them to: $ echo 'a string with a \' inside' > ' a string with a \ inside I recommend using double quotes and escaping ", `, $ and \. |
Revert first attempt to escape environment variables - need more platform specific investigation.
test/plugins/builder_base.py | ||
---|---|---|
102 | Actually, do you mind if I defer on escaping these and commit the first patchset? It's going to be very platform dependent so I'd prefer to investigate how the environment variables are set on Windows as well and make sure I get the right escaping there too. |
Hmm, I think os.environ[k] might need to be escaped in case it contains ' or ".