Repository navigation
Default to quoting strings in Bazel -> CMake - #4394
Conversation
|
We shouldn't quote target names - those cannot have spaces and the quotes are not canonical cmake |
Ah that's most of what this changes 😁. You're referring to both targets given to |
|
correct - our macros are meant to act like the builtin cmake ones, so DEPS is -> target_link_libraries, and that has the form |
|
(and NAME is add_library: |
|
Ok, defaulting to quoted, with target names explicitly made unquoted. |
|
Big improvement! This also makes it clearer which things are targets and which aren't (so a BACKEND of "vulkan-spirv" does not imply there is some |
This all comes from me being confused about why some things were and some things weren't quoted. Hopefully the script cleanup makes it clearer that we're making a conscious decision about some of this 😁 |
|
Huh we seem to have lost our bazel->cmake label |
|
infrastructure/cmake covers it :) |
This adds quotations by default around strings translated by Bazel -> CMake. Target names are deliberately (and explicitly) left made unquoted. Also removes the redundant OUT parameter usage in iree_cc_binary. This is already handled in the function definition. The only thing that functionally changes here are `TARGET_BACKEND` and `DRIVER` arguments to the check test functions. Note that this *only* changes files generated by Bazel -> CMake (by running Bazel -> CMake) and not manually-written files.
* bb0f95e Enable all packages on all every OS. * 7cf454d Add dependencies properly for python install targets. * 827eccf Third attempt: Rename packages to not collide on 'compiler' term. * a3145cb Second attempt: fix some target names and change the docker image. * 763fc1b First attempt: enable all python packages as experimental on linux. * 9364f0f Add install targets for all python packages and configure in CI. * 6fe74ac Correctly get binary name in android run_binary_test (#4403) * b1bc038 Remove special handling for runtime -> compiler dep (#4396) * 38d3c14 Disable run_binary_test on Android (#4402) * 35d4b32 Build an e2e path for linalg on tensors. (#4368) * c0e362c Merge google -> main (#4401) * 7aecc34 Merge branch 'main' into google-to-main * 7dc756b Attempt to appease linter on SUBMODULE_VERSIONS for mlir-emitc * c83f594 Use backward buffer allocation in HLOToLinalgOnBuffers (#4318) * 4889612 Avoid running slow benchmarks as part of testing (#4364) * 9b72435 Default to quoting strings in Bazel -> CMake (#4394) * 2a52c0f Fix m1 builds (#4361) * 30f67df Update cross-compilation for changed experimental flag names (#4365) * dc7d633 Merge pull request #4386 from google/benvanik-hal-pre * 3d577af Move macos out of experimental now that it builds. * 1c2a4bf Note that iree_task_list_discard leaves the list in a usable state. * dcd1b53 Adding utils for common string view and allocator operations. * d2af7f3 Adding iree_atomic_thread_fence (like (std::)atomic_thread_fence). * c691e23 Bazel -> CMake cleanup (#4362) * e002f99 Attempt to pin the python executable more robustly for macos. * eb184f9 Link Foundation and Metal frameworks on macos. * cc8c1b2 Turn -Wunused-variable back on (#4360) * 52ebf7b Use existing script in submodule synchronize action (#4358) * 0f0fffd Get remote name in a more portable way in gh scripting (#4357) * 4868a49 Add one-shot runtime MacOS sanity check workflow. * 44ca211 Actually use the platlib install command for linux wheels. * fd36682 [spirv] Replace SPIRVOpLowering with a local class (#4383) * cf10473 Fix macos matrix spec. * 197f33b Enable windows build as non experimental. * 05190e1 Make pyiree compiler package compatible with manylinux2014. * 626d45a Add missing dep on HLOToLinalg (#4377) * b0e8243 Integrate MLIR-EmitC at iml130/mlir-emitc@a438d3b (#4375) * f0514e4 NFC: Fix some pre-existing yaml lint. * bb1de96 Plumb package suffix, version, and revision info to release packages. * 995d0b7 Moved iree-check-module-main.cc to iree/tools (#4312) * 56e40ac Remove suspected merge conflict in darwin_threading.c. * 938875f Enable macos and windows builds. * 921b46d Rename cmake_configure_ci.py -> cmake_ci.py. * 57435cd Fix typo build_iree -> iree_build. * fd1d06c Fix typo in install-iree -> iree-install. * 2ab4dfc Update workflow dispatch token. * 29f1596 Re-enable tag fetching * f8f4031 Fix issues in snapshot schedule. * bd6cf1f Add scheduled workflow to trigger snapshot releases. * 442b35e Fix typo in runtime matrix check. * b4981b2 Configure pipeline to build IREE runtime wheels. * 77a63cd Make the main python packages cmake installable. * 4e1602a Add cmake_configure_ci.py. * 723ff37 Remove typo from GCC iree_atomic_load_auto macro. * 847ac69 Disable workflow on push to cidev * e666fbf Fixing the casting behavior of atomic compare exchange on windows. * 25c4cb3 Adding merge_from support for IntrusiveList unique_ptr/ref_ptr. * 334d3e2 Update getting_started_linux_cmake.md (#4367) * c9687d4 Update bazel_to_cmake to support testonly for iree_bytecode_module (#4337) * 0657be2 Fix mlir-hlo path in Submodule update scripting (#4356) * d146a3d Add scripting to update mlir-hlo to match LLVM commit (#4348) * 3010d3c Clean up naming in LLVM sync script (#4346) * af6c2d4 Merge pull request #4227 from google/benvanik-tasks-core * 01600a5 Adding an entire RTOS-scale task scheduling system. * b47e6f0 Clarifying note on iree_wait_set_erase. * a60332c Tweaking thread affinity groups to have an SMT flag. This allows us to keep th.. * c5b440d Adding tracing to thread name setters. Turns out, setting the thread name can .. * b544ef6 Allowing threads to be created running (not always suspended). Though creating.. * c3af92e Adding IREE_TRACE_ZONE_SET_COLOR macro. * ed727e2 Plumbing tracy mutex support into iree_slim_mutex_t. * 122d6b8 Adding benoit's MiniLcg pseudo-random number generator. * 142bc6a Adding and/or/xor atomic operations. * 9853806 Adding IREE_ASSERT macros. COPYBARA_INTEGRATE_REVIEW=#4413 from KoolJBlack:main-to-google 594e06c PiperOrigin-RevId: 350634605
* bb0f95e Enable all packages on all every OS. * 7cf454d Add dependencies properly for python install targets. * 827eccf Third attempt: Rename packages to not collide on 'compiler' term. * a3145cb Second attempt: fix some target names and change the docker image. * 763fc1b First attempt: enable all python packages as experimental on linux. * 9364f0f Add install targets for all python packages and configure in CI. * 6fe74ac Correctly get binary name in android run_binary_test (#4403) * b1bc038 Remove special handling for runtime -> compiler dep (#4396) * 38d3c14 Disable run_binary_test on Android (#4402) * 35d4b32 Build an e2e path for linalg on tensors. (#4368) * c0e362c Merge google -> main (#4401) * 7aecc34 Merge branch 'main' into google-to-main * 7dc756b Attempt to appease linter on SUBMODULE_VERSIONS for mlir-emitc * c83f594 Use backward buffer allocation in HLOToLinalgOnBuffers (#4318) * 4889612 Avoid running slow benchmarks as part of testing (#4364) * 9b72435 Default to quoting strings in Bazel -> CMake (#4394) * 2a52c0f Fix m1 builds (#4361) * 30f67df Update cross-compilation for changed experimental flag names (#4365) * dc7d633 Merge pull request #4386 from google/benvanik-hal-pre * 3d577af Move macos out of experimental now that it builds. * 1c2a4bf Note that iree_task_list_discard leaves the list in a usable state. * dcd1b53 Adding utils for common string view and allocator operations. * d2af7f3 Adding iree_atomic_thread_fence (like (std::)atomic_thread_fence). * c691e23 Bazel -> CMake cleanup (#4362) * e002f99 Attempt to pin the python executable more robustly for macos. * eb184f9 Link Foundation and Metal frameworks on macos. * cc8c1b2 Turn -Wunused-variable back on (#4360) * 52ebf7b Use existing script in submodule synchronize action (#4358) * 0f0fffd Get remote name in a more portable way in gh scripting (#4357) * 4868a49 Add one-shot runtime MacOS sanity check workflow. * 44ca211 Actually use the platlib install command for linux wheels. * fd36682 [spirv] Replace SPIRVOpLowering with a local class (#4383) * cf10473 Fix macos matrix spec. * 197f33b Enable windows build as non experimental. * 05190e1 Make pyiree compiler package compatible with manylinux2014. * 626d45a Add missing dep on HLOToLinalg (#4377) * b0e8243 Integrate MLIR-EmitC at iml130/mlir-emitc@a438d3b (#4375) * f0514e4 NFC: Fix some pre-existing yaml lint. * bb1de96 Plumb package suffix, version, and revision info to release packages. * 995d0b7 Moved iree-check-module-main.cc to iree/tools (#4312) * 56e40ac Remove suspected merge conflict in darwin_threading.c. * 938875f Enable macos and windows builds. * 921b46d Rename cmake_configure_ci.py -> cmake_ci.py. * 57435cd Fix typo build_iree -> iree_build. * fd1d06c Fix typo in install-iree -> iree-install. * 2ab4dfc Update workflow dispatch token. * 29f1596 Re-enable tag fetching * f8f4031 Fix issues in snapshot schedule. * bd6cf1f Add scheduled workflow to trigger snapshot releases. * 442b35e Fix typo in runtime matrix check. * b4981b2 Configure pipeline to build IREE runtime wheels. * 77a63cd Make the main python packages cmake installable. * 4e1602a Add cmake_configure_ci.py. * 723ff37 Remove typo from GCC iree_atomic_load_auto macro. * 847ac69 Disable workflow on push to cidev * e666fbf Fixing the casting behavior of atomic compare exchange on windows. * 25c4cb3 Adding merge_from support for IntrusiveList unique_ptr/ref_ptr. * 334d3e2 Update getting_started_linux_cmake.md (#4367) * c9687d4 Update bazel_to_cmake to support testonly for iree_bytecode_module (#4337) * 0657be2 Fix mlir-hlo path in Submodule update scripting (#4356) * d146a3d Add scripting to update mlir-hlo to match LLVM commit (#4348) * 3010d3c Clean up naming in LLVM sync script (#4346) * af6c2d4 Merge pull request #4227 from google/benvanik-tasks-core * 01600a5 Adding an entire RTOS-scale task scheduling system. * b47e6f0 Clarifying note on iree_wait_set_erase. * a60332c Tweaking thread affinity groups to have an SMT flag. This allows us to keep th.. * c5b440d Adding tracing to thread name setters. Turns out, setting the thread name can .. * b544ef6 Allowing threads to be created running (not always suspended). Though creating.. * c3af92e Adding IREE_TRACE_ZONE_SET_COLOR macro. * ed727e2 Plumbing tracy mutex support into iree_slim_mutex_t. * 122d6b8 Adding benoit's MiniLcg pseudo-random number generator. * 142bc6a Adding and/or/xor atomic operations. * 9853806 Adding IREE_ASSERT macros. COPYBARA_INTEGRATE_REVIEW=#4413 from KoolJBlack:main-to-google 594e06c PiperOrigin-RevId: 350634605
This adds quotations by default around strings translated by
Bazel -> CMake. Target names are deliberately (and explicitly) left
made unquoted.
Also removes the redundant OUT parameter usage in iree_cc_binary. This
is already handled in the function definition.
The only thing that functionally changes here are
TARGET_BACKENDandDRIVERarguments to the check test functions.Note that this only changes files generated by Bazel -> CMake (by
running Bazel -> CMake) and not manually-written files.