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
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/plugins/builder_base.py | ||
---|---|---|
89 ↗ | (On Diff #23546) | Hmm, I think os.environ[k] might need to be escaped in case it contains ' or ". |
test/plugins/builder_base.py | ||
---|---|---|
101 ↗ | (On Diff #23599) | 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 \. |
Comment Actions
Revert first attempt to escape environment variables - need more platform specific investigation.
test/plugins/builder_base.py | ||
---|---|---|
101 ↗ | (On Diff #23599) | 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. |