-
Notifications
You must be signed in to change notification settings - Fork 316
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
Compiling with Bazel is broken on Windows #781
Comments
Thanks for filing! https://r.android.com/3081311 should fix issue 3. If you could send fixes for 1 and 2, that would be very much appreciated! |
Thank you for such a quick fix!
|
I've commented on the change. |
Calling rfind() needed to use os.sep as the path separator. The input arguments use forward slashes, probably because this is executed as a genrule in bash even on Windows, so this uses '/' instead of os.sep. Bug: #781 Change-Id: Id890b6aab6236b5d6addf317995c75394faab00e
Otherwise Bazel will recongize ui/build as a BUILD file on case-insensitive filesystems (e.g., Windows). Bug: #781 Change-Id: I3fdd7953d789412848ac28dc44b95238ed7b5a43
This CL fixes the broken compile of trace processor on MSBC because it more eagerly expands CRTP templates than Clang or GCC. Bug: #781 Change-Id: I58bb4b4b6793e3b3914ad23245b6e9dcca69b22f
At change 8ff5262 everything is now building on Windows :) |
Reopening, since there was a revert (0a0f29f). Is it possible to rename |
Can you reach out to @stevegolton internally to discuss? |
Can we just add /ui in $root/.bazelignore (feel free to send a CL for it) ? Can I ask what are you trying to do? Specifically why do you need bazel on windows and can't use GN instead? My only fear is that we keep piling up combinations of build system and platforms. We can't commit to maintain anything else other than GN, which is our primary build sytem (and Android.bp for android). The rest is all best effort, which means somtimes it will break without us realizing and you'll have to figure out. |
Adding a .bazelignore would be a great solution, I forget that exists. Our project (Android Studio) builds with Bazel and its build graph depends on perfetto dependencies, so we cannot use GN without significant changes on our end. |
Ah gotcha. Yeah send a patch with .bazelignore, feels like it should make the problem go away easily |
This was done in aosp/3092494 |
Upgrading to the latest version I hit a few issues
ui/build
file as a Bazel BUILD file, leading to the directory being treated as a bazel package.I have fixes for 1 and 2, and can send fixes for them. However 3 is leaving me a bit stumped.
The text was updated successfully, but these errors were encountered: