Skip to content

Commit

Permalink
move common configs up top
Browse files Browse the repository at this point in the history
  • Loading branch information
sjain-stanford committed Apr 8, 2024
1 parent 2690435 commit 25cd753
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Also available under a BSD-style license. See LICENSE.

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://bazel.build/external/migration
common --noenable_bzlmod

# Automatically detect host platform to pick config
common --enable_platform_specific_config

###############################################################################
# Options for "generic_clang" builds: these options should generally apply to
# builds using a Clang-based compiler, and default to the `clang` executable on
Expand All @@ -28,8 +35,6 @@ build:generic_clang --cxxopt=-Wno-range-loop-analysis --host_cxxopt=-Wno-range-l
# not the point of the Bazel build to catch usage of deprecated APIs.
build:generic_clang --copt=-Wno-deprecated --host_copt=-Wno-deprecated

# Automatically detect host platform to pick config
common --enable_platform_specific_config

# lld links faster than other linkers. Assume that anybody using clang on linux
# also has lld available.
Expand All @@ -45,9 +50,6 @@ build:dbg --compilation_mode=dbg
# GDB builds in dbg mode
build:gdb --config=dbg

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://bazel.build/external/migration
common --noenable_bzlmod

# Continue running tests for targets that build without having
# AOT compile genrules failing to build from terminating the rest
Expand Down

0 comments on commit 25cd753

Please sign in to comment.