daml/daml-lf/interpreter/perf/BUILD.bazel
Stephen Compall a51d0db8ff
set scalac -Xsource:2.13 -Ypartial-unification globally (#6469)
* add -Xsource:2.13, -Ypartial-unification to common_scalacopts

* add now-referenced scalaz-core where needed

* work around bad type signatures in scalatest Aggregating, Containing

* unused Any suppression

* work around bad partial-unification wrought by type alias

* remove unused Conversions import

- not required in 4f68cfc480 either, so unsure how it's survived this long

* work around Future.traverse; remove unused show import

* no changelog

CHANGELOG_BEGIN
CHANGELOG_END

* remove unused bounds

* remove -Ypartial-unification and -Xsource:2.13 where they were explicitly passed

* longer comment on what the options do

- suggested by @stefanobaghino-da; thanks

* forget Future.traverse, just use scalaz, it knows how to do this
2020-06-24 16:51:24 -04:00

108 lines
2.9 KiB
Python

# Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load(
"//bazel_tools:scala.bzl",
"da_scala_binary",
)
load("//rules_daml:daml.bzl", "daml_compile")
daml_compile(
name = "Examples",
srcs = glob(["daml/Examples.daml"]),
)
da_scala_binary(
name = "explore",
srcs = glob(["src/main/**/Explore.scala"]),
main_class = "com.daml.lf.speedy.explore.Explore",
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
deps = [
"//daml-lf/data",
"//daml-lf/interpreter",
"//daml-lf/language",
],
)
da_scala_binary(
name = "explore-dar",
srcs = glob(["src/main/**/ExploreDar.scala"]),
data = [
":Examples.dar",
":Examples.dar.pp",
],
main_class = "com.daml.lf.speedy.explore.ExploreDar",
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
deps = [
"//bazel_tools/runfiles:scala_runfiles",
"//daml-lf/archive:daml_lf_archive_reader",
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
"//daml-lf/data",
"//daml-lf/interpreter",
"//daml-lf/language",
"@maven//:com_google_protobuf_protobuf_java",
"@maven//:org_scalaz_scalaz_core_2_12",
],
)
da_scala_binary(
name = "speed-nfib",
srcs = glob([
"src/main/**/LoadDarFunction.scala",
"src/main/**/SpeedTestNfib.scala",
]),
data = [
":Examples.dar",
":Examples.dar.pp",
],
main_class = "com.daml.lf.speedy.explore.SpeedTestNfib",
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
deps = [
"//bazel_tools/runfiles:scala_runfiles",
"//daml-lf/archive:daml_lf_archive_reader",
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
"//daml-lf/data",
"//daml-lf/interpreter",
"//daml-lf/language",
"@maven//:com_google_protobuf_protobuf_java",
"@maven//:org_scalaz_scalaz_core_2_12",
],
)
daml_compile(
name = "JsonParser",
srcs = glob(["daml/JsonParser.daml"]),
)
da_scala_binary(
name = "speed-json-parser",
srcs = glob([
"src/main/**/LoadDarFunction.scala",
"src/main/**/SpeedTestJsonParser.scala",
]),
data = [
":JsonParser.dar",
":JsonParser.dar.pp",
],
main_class = "com.daml.lf.speedy.explore.SpeedTestJsonParser",
runtime_deps = [
"@maven//:ch_qos_logback_logback_classic",
],
deps = [
"//bazel_tools/runfiles:scala_runfiles",
"//daml-lf/archive:daml_lf_archive_reader",
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
"//daml-lf/data",
"//daml-lf/interpreter",
"//daml-lf/language",
"@maven//:com_google_protobuf_protobuf_java",
"@maven//:org_scalaz_scalaz_core_2_12",
],
)