Conversation
|
Seems I'll need to find a way to escape some paths in tool invocations, and if not possible give up |
What issues does it cause? |
|
Unit files have a hash based on the object file path. When we import unit files we need to make the object file path equal to what it would be if Xcode generates them. Xcode will generate these paths with spaces in their name, while rules_swift will replace the spaces. So during an import we would have to undo this, but with index-import (which is just regex) we can't. Even if we could, theoretically there are some paths out there with |
|
And after saying all of that, I think I'll add something to index-import to address this for the time being. |
|
MobileNativeFoundation/index-import#65 We can merge this PR once we drop Bazel 5.x support. |
a7a975a to
6755b56
Compare
|
Looks like there are new failures. I'll see if I'm able to address them. |
|
So clang (at least on linux) requires quotes for spaces in the params file. Seeing if I can influence that, or if it will require a Bazel patch. |
|
It looks like enabling the |
|
is this fixed with your upstream fix? |
This replacement causes issues with importing indexstores. As of Bazel 7, with `gcc_quoting_for_param_files`, we can finally remove this hack. Signed-off-by: Brentley Jones <github@brentleyjones.com>
6755b56 to
4b34c01
Compare
|
With that change, we can finally land this change. Rebased. |
|
All green now. @keith @luispadron. |
This replacement causes issues with importing indexstores.
In 965c373 this replacement was added to work around issues with
ar_wrapper. I don't seear_wrapperused anywhere in Bazel, so I believe this is safe to remove.