Skip to content

Commit

Permalink
[bazel] Add note on working with Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Apr 24, 2021
1 parent 73ba669 commit 3e5ffdf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
20 changes: 14 additions & 6 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,24 @@ alias(

java_binary(
name = "server",
args = [
"standalone",
"--relax-checks",
"true",
],
data = chrome_data + firefox_data,
jvm_flags = chrome_jvm_flags + firefox_jvm_flags,
main_class = "org.openqa.selenium.grid.Bootstrap",
runtime_deps = [
"//java/server/src/org/openqa/selenium/grid",
artifact("org.slf4j:slf4j-jdk14"),
],
jvm_flags = chrome_jvm_flags + firefox_jvm_flags,
data = chrome_data + firefox_data,
args = [
"standalone",
"--relax-checks",
"true",
)

platform(
name = "rosetta",
constraint_values = [
"@platforms//os:osx",
"@platforms//cpu:x86_64",
],
)
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ The following command should work:
xcode-select --install
```

* Users of Apple Silicon Macs should add `build
--host_platform=//:rosetta` to their `.bazelrc.local` file. We are working
to make sure this isn't required in the long run.

* Windows users should have the latest version of Visual Studio command line tools and build tools installed
* `BAZEL_VS` environment variable should point to the location of the build tools,
e.g. `C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools`
Expand Down

0 comments on commit 3e5ffdf

Please sign in to comment.