-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Cannot compile with copts containing space on mac #3541
Comments
You can send us a change to review with your suggestion. The lack of details for the rollbacks/rollforwards is probably due to some internal factors. Marcel can tell you more about the validity of your suggestion. |
Unquoted $@ parameter expansion was breaking up values containing spaces. Fix bazelbuild#3541
I am facing the same problem on Ubuntu 18.04 as well. I tried to use
The problem comes from the last 3 arguments How can I help fixing this problem? I can give the exact commands to repoduce the error on a docker image. |
Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen (or ping me to reopen) if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so. |
Description of the problem / feature request / question:
It fails to compile cc target with copts containing spaces (or maybe any character needed to escape on shell) on mac. I defined a macro
-D_START_GOOGLE_NAMESPACE_="namespace google {"
to build glog like google/glog#61.This is likely caused by wrapped_clang incorrectly passing arguments. I'd think it could succeed by just replacing
clang $@
withclang "$@"
. I could make a change if that's considered reasonable but the wrapper script has been rolled back and forward twice maybe due to a regression (missing details though.) I don't know how it's designed and wonder the validity of that way.If possible, provide a minimal example to reproduce the problem:
BUILD (for arbitrary a.cc):
bazel 0.5.3
bazel 0.4.5
Environment info
Operating System: macOS 10.12.6
Bazel version (output of
bazel info release
): release 0.5.3-homebrewThe text was updated successfully, but these errors were encountered: