blob: fe656d032236902008c0c25f902edb7edc88dbf7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- .bazelrc.orig 2023-09-12 16:46:28 UTC
+++ .bazelrc
@@ -166,6 +166,19 @@ build:libc++ --linkopt -fuse-ld=lld
build:libc++ --define force_libcpp=enabled
build:libc++ --linkopt -fuse-ld=lld
+# Use our custom-configured c++ toolchain.
+# Use --cpu as a differentiator.
+build:freebsd --cpu=freebsd
+
+# Use the default Bazel C++ toolchain to build the tools used during the
+# build.
+build:freebsd --crosstool_top=//freebsd:freebsd_clang
+build:freebsd --linkopt=-L%%LOCALBASE%%/lib
+
+build:freebsd --define build_with_onednn_v2=true
+build:freebsd --define force_libcpp=enabled
+build:freebsd --action_env=CXXFLAGS=-stdlib=libc++
+
# Android configs. Bazel needs to have --cpu and --fat_apk_cpu both set to the
# target CPU to build transient dependencies correctly. See
# https://docs.bazel.build/versions/master/user-manual.html#flag--fat_apk_cpu
|