Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update gcc toolchain #75

Merged
merged 1 commit into from
Sep 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,27 @@ host_system_libraries(

load("@host_system_libraries//:defs.bzl", "HOST_SYSTEM_LIBRARIES")

# Note: not correcton MacOS.
# Note: not correct on MacOS.
LLVM_COLOR_FLAGS = ["-fdiagnostics-color=always" if "libinfo.so.5" in HOST_SYSTEM_LIBRARIES else ""]

BAZEL_BOOTLIN_COMMIT = "eae108c14445074ab5c8ae7f5338eebf1873ae69"
BAZEL_BOOTLIN_COMMIT = "10638e74e907689abf9b7dc81aad05c588879079"

http_archive(
name = "bazel_bootlin",
sha256 = "ea76bcd8fc27da13bc79acc4844baadc563e07888a128265ca74d07cd58c1f34",
sha256 = "47bbb94a6277ff1ab579b23509ed6c076445b9d99195b4df0aba069298ae3f1c",
strip_prefix = "bazel_bootlin-%s" % BAZEL_BOOTLIN_COMMIT,
url = "https://github.com/oliverlee/bazel_bootlin/archive/%s.tar.gz" % BAZEL_BOOTLIN_COMMIT,
)

load("@bazel_bootlin//:defs.bzl", "bootlin_toolchain")

# for mapping from buildroot version to gcc version
# see https://toolchains.bootlin.com/releases_x86-64.html
bootlin_toolchain(
name = "gcc_toolchain",
architecture = "x86-64",
buildroot_version = "bleeding-edge-2022.08-1",
# x86-64-v3 should cover CPUs released after ~2015.
# see https://www.phoronix.com/news/GCC-11-x86-64-Feature-Levels.
architecture = "x86-64-v3",
# see https://toolchains.bootlin.com/releases_x86-64-v3.html
buildroot_version = "bleeding-edge-2023.08-1",
extra_cxx_flags = [
"-fdiagnostics-color=always",
"-std=c++23",
Expand Down
Loading