Skip to content

make bazel build on macOS work again - #5237

Merged
stellaraccident merged 2 commits into
iree-org:mainfrom
freedomtan:make_bazel_build_on_osx_x86_work_again
Mar 27, 2021
Merged

stellaraccident merged 2 commits into
iree-org:mainfrom
freedomtan:make_bazel_build_on_osx_x86_work_again

Conversation

@freedomtan

@freedomtan freedomtan commented Mar 27, 2021 •

Copy link
Copy Markdown
Contributor

make

bazel build //iree/...

work on both macOS x86_64 and arm64 machine

  1. use macos_clang in configure_bazel.py, so that there will be build --config=macos_clang in configured.bazelrc after running python configure_bazel.py
  2. make iree/tools/utils/ build by per_file_opt -Wno-range-loop-analysis

@google-cla google-cla Bot added the cla: yes label Mar 27, 2021

@stellaraccident stellaraccident left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this. I think we could accept the config updates easily but need more discussions on adding the tensorflow dep to the main project workspace.

Comment thread WORKSPACE Resolved
Comment thread iree/compiler/Conversion/Common/BUILD Resolved
@freedomtan
freedomtan marked this pull request as draft March 27, 2021 15:42
@freedomtan
freedomtan force-pushed the make_bazel_build_on_osx_x86_work_again branch from 78fcf55 to 474790b Compare March 27, 2021 16:59
@freedomtan
freedomtan marked this pull request as ready for review March 27, 2021 17:04

@stellaraccident stellaraccident left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@stellaraccident
stellaraccident merged commit 8712d40 into iree-org:main Mar 27, 2021
@freedomtan
freedomtan deleted the make_bazel_build_on_osx_x86_work_again branch March 28, 2021 01:02
@GMNGeoffrey GMNGeoffrey added infrastructure/bazel platform/macos 🍎 MacOS-specific build, execution, benchmarking, and deployment infrastructure Relating to build systems, CI, or testing labels Mar 30, 2021
@KoolJBlack KoolJBlack mentioned this pull request Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing platform/macos 🍎 MacOS-specific build, execution, benchmarking, and deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants