From 0d5f9823abc9dbe330692cd6fd9e63adca9f5022 Mon Sep 17 00:00:00 2001 From: dtor Date: Fri, 3 Jan 2025 05:11:03 +0000 Subject: [PATCH] toolchain: update aarch64 builtin directories --- toolchain/aarch64_linux/cc_toolchain_config.bzl | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/toolchain/aarch64_linux/cc_toolchain_config.bzl b/toolchain/aarch64_linux/cc_toolchain_config.bzl index 772d74e..4f8b660 100644 --- a/toolchain/aarch64_linux/cc_toolchain_config.bzl +++ b/toolchain/aarch64_linux/cc_toolchain_config.bzl @@ -110,7 +110,7 @@ def _impl(ctx): enabled = True, flag_sets = [ flag_set( - actions = [ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble], + actions = all_link_actions + all_compile_actions, flag_groups = [ flag_group(flags = ["-fPIC"]), ], @@ -215,8 +215,6 @@ def _impl(ctx): "-Wformat=2", "-Wimplicit-fallthrough", "-Werror", - "-Wno-c++98-compat", - "-Wno-c++98-compat-pedantic", ], ), ], @@ -234,8 +232,6 @@ def _impl(ctx): flags = [ "-Wall", "-Wshadow", - "-Wno-c++98-compat", - "-Wno-c++98-compat-pedantic", ], ), ], @@ -248,12 +244,10 @@ def _impl(ctx): ctx = ctx, features = features, cxx_builtin_include_directories = [ + "/usr/include", "/usr/aarch64-linux-gnu", + "/usr/lib/aarch64-linux-gnu", "/usr/lib/gcc-cross/aarch64-linux-gnu", - "/usr/lib/llvm-18/lib/clang/18/include", - "/usr/lib/llvm-18/lib/clang/18/share", # Dir containing `asan_ignorelist.txt` - "/usr/lib/clang/18/include", - "/usr/include", ], toolchain_identifier = "aarch64_linux-toolchain", host_system_name = "local",