| # The Skylark interpreter |
| # Open-sourced as part of Bazel. |
| |
| package(default_visibility = ["//src:__subpackages__"]) |
| |
| java_binary( |
| name = "Skylark", |
| srcs = ["Skylark.java"], |
| jvm_flags = [ |
| # quiet warnings from com.google.protobuf.UnsafeUtil, |
| # see: https://github.com/google/protobuf/issues/3781 |
| # and: https://github.com/bazelbuild/bazel/issues/5599 |
| "--add-opens=java.base/java.nio=ALL-UNNAMED", |
| "--add-opens=java.base/java.lang=ALL-UNNAMED", |
| # ... but only on JDK >= 9 |
| "-XX:+IgnoreUnrecognizedVMOptions", |
| ], |
| main_class = "com.google.devtools.skylark.Skylark", |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib:events", |
| "//src/main/java/com/google/devtools/build/lib:packages-internal", |
| ], |
| ) |
| |
| filegroup( |
| name = "srcs", |
| srcs = glob(["**"]), |
| ) |