-
Notifications
You must be signed in to change notification settings - Fork 671
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
Support Builds on Windows #19
Comments
* Requires clang-cl * Spews a bunch of warning about benign redefinitions and unknown command line arguments (needs triage). * Allows building of iree/tools/run_module and iree/tools/iree-run-mlir, which together, account for building most of the non-test assets. #19
* Requires clang-cl * Spews a bunch of warning about benign redefinitions and unknown command line arguments (needs triage). * Allows building of iree/tools/run_module and iree/tools/iree-run-mlir, which together, account for building most of the non-test assets. #19 Convert to unix line endings (why, windows, why).
* Requires clang-cl * Spews a bunch of warning about benign redefinitions and unknown command line arguments (needs triage). * Allows building of iree/tools/run_module and iree/tools/iree-run-mlir, which together, account for building most of the non-test assets. #19
With this, all of the iree/compiler/... tests build/pass. #19
With PR22, I've mostly got things building and testing on Windows. There are some e2e tests that appear to be failing on some mysterious FileCheck pipeline issue that is not immediately obvious (and has he smell of something subtly Windows specific). I'll write a doc on how to setup your Windows build environment. |
* Basic support for building on windows. * Requires clang-cl * Spews a bunch of warning about benign redefinitions and unknown command line arguments (needs triage). * Allows building of iree/tools/run_module and iree/tools/iree-run-mlir, which together, account for building most of the non-test assets. #19 * Fix path issue in lit test runner so it works on Windows under msys2. With this, all of the iree/compiler/... tests build/pass. #19 * Filter for the lit RUN line (not just first line). This allows the e2e tests that include comments first to function. I really need to get lit working properly but this gets us to the point where all of the compiler and e2e tests work (on Windows too). * Make the lit RUN line matching more robust. * Fix argument command line parsing to trim options. This has the side effect of getting most compiler and e2e tests running on Windows, although some are failing (for unknown reasons). Closes #23 #19
* Requires clang-cl * Spews a bunch of warning about benign redefinitions and unknown command line arguments (needs triage). * Allows building of iree/tools/run_module and iree/tools/iree-run-mlir, which together, account for building most of the non-test assets. iree-org#19 Fix path issue in lit test runner so it works on Windows under msys2. With this, all of the iree/compiler/... tests build/pass. iree-org#19 Filter for the lit RUN line (not just first line). This allows the e2e tests that include comments first to function. I really need to get lit working properly but this gets us to the point where all of the compiler and e2e tests work (on Windows too). Make the lit RUN line matching more robust. Fix argument command line parsing to trim options. This has the side effect of getting most compiler and e2e tests running on Windows, although some are failing (for unknown reasons). Closes iree-org#23 iree-org#19 Edit positional command arguments in place.
* Requires clang-cl * Spews a bunch of warning about benign redefinitions and unknown command line arguments (needs triage). * Allows building of iree/tools/run_module and iree/tools/iree-run-mlir, which together, account for building most of the non-test assets. iree-org#19 Fix path issue in lit test runner so it works on Windows under msys2. With this, all of the iree/compiler/... tests build/pass. iree-org#19 Filter for the lit RUN line (not just first line). This allows the e2e tests that include comments first to function. I really need to get lit working properly but this gets us to the point where all of the compiler and e2e tests work (on Windows too). Make the lit RUN line matching more robust. Fix argument command line parsing to trim options. This has the side effect of getting most compiler and e2e tests running on Windows, although some are failing (for unknown reasons). Closes iree-org#23 iree-org#19 Edit positional command arguments in place.
* Requires clang-cl * Spews a bunch of warning about benign redefinitions and unknown command line arguments (needs triage). * Allows building of iree/tools/run_module and iree/tools/iree-run-mlir, which together, account for building most of the non-test assets. #19 Fix path issue in lit test runner so it works on Windows under msys2. With this, all of the iree/compiler/... tests build/pass. #19 Filter for the lit RUN line (not just first line). This allows the e2e tests that include comments first to function. I really need to get lit working properly but this gets us to the point where all of the compiler and e2e tests work (on Windows too). Make the lit RUN line matching more robust. Fix argument command line parsing to trim options. This has the side effect of getting most compiler and e2e tests running on Windows, although some are failing (for unknown reasons). Closes #23 #19 Edit positional command arguments in place. Closes #56 COPYBARA_INTEGRATE_REVIEW=#56 from stellaraccident:winbuild d94b043 PiperOrigin-RevId: 274613114
* Fix Vulkan SDK lib path on Windows. * Workaround SDL omitting includes for intrinsics. * Adjust .bazelrc to be less restrictive (Windows GDI, Graphics Device Interace, is needed now). Relates to #19
* Fix Vulkan SDK lib path on Windows. * Workaround SDL omitting includes for intrinsics. * Adjust .bazelrc to be less restrictive (Windows GDI, Graphics Device Interace, is needed now). Relates to #19
* Fix Vulkan SDK lib path on Windows. * Workaround SDL omitting includes for intrinsics. * Adjust .bazelrc to be less restrictive (Windows GDI, Graphics Device Interace, is needed now). Tested that `bazel build //...` and ` bazel run //iree/samples/rt/vulkan:vk_graphics_integration` both work on my Windows machine. Relates to #19 Closes #180 COPYBARA_INTEGRATE_REVIEW=#180 from google:scotttodd-windows-sdl 607f30b PiperOrigin-RevId: 284996490
I think we can close this issue for now, since most core targets build and run on Windows now, and track specific missing pieces separately. |
* Reportedly some older envs/python versions can return a relative path for __file__, which can make the parent traversal dodgy. Makes sure it is absolute. * If just updating a repo to a new commit, was not fetching, so the checkout would fail if too old.
We ultimately want to support Windows builds via cmake and bazel. This issue will track the progress.
With a bit of tweaking, the bazel build mostly works for:
iree/tools/run_module (the simplest e2e example)
The text was updated successfully, but these errors were encountered: