Skip to content

Commit

Permalink
Edit toolchain to work with absl dep
Browse files Browse the repository at this point in the history
  • Loading branch information
deannagarcia committed Oct 13, 2022
1 parent 4aab0bf commit dda7ffd
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions toolchain/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,33 @@ cc_toolchain_config(
cc_toolchain_config(
name = "osx-aarch_64-config",
extra_compiler_flags = [
"-I/usr/tools/apple_sdks/xcode_13_0/macosx/usr/include/c++/v1",
"-I/usr/tools/apple_sdks/xcode_13_0/macosx/usr/include"
"-I/usr/tools/xcode_14_0/macosx/usr/include/c++/v1",
"-I/usr/tools/xcode_14_0/macosx/usr/include",
"-F/usr/tools/xcode_14_0/macosx/System/Library/Frameworks",
"-Wno-error=nullability-completeness",
"-Wno-error=availability",
"-Wno-error=elaborated-enum-base",
],
extra_linker_flags = ["-framework CoreFoundation"],
linker_path = "/usr/tools",
sysroot = "/usr/tools/apple_sdks/xcode_13_0/macosx",
sysroot = "/usr/tools/xcode_14_0/macosx",
target_cpu = "aarch64",
target_full_name = "aarch64-apple-macosx11.3",
)

cc_toolchain_config(
name = "osx-x86_64-config",
extra_compiler_flags = [
"-I/usr/tools/apple_sdks/xcode_13_0/macosx/usr/include/c++/v1",
"-I/usr/tools/apple_sdks/xcode_13_0/macosx/usr/include"
"-I/usr/tools/xcode_14_0/macosx/usr/include/c++/v1",
"-I/usr/tools/xcode_14_0/macosx/usr/include",
"-F/usr/tools/xcode_14_0/macosx/System/Library/Frameworks",
"-Wno-error=nullability-completeness",
"-Wno-error=availability",
"-Wno-error=elaborated-enum-base",
],
extra_linker_flags = ["-framework CoreFoundation"],
linker_path = "/usr/tools",
sysroot = "/usr/tools/apple_sdks/xcode_13_0/macosx",
sysroot = "/usr/tools/xcode_14_0/macosx",
target_cpu = "x86_64",
target_full_name = "x86_64-apple-macosx11.3",
)
Expand All @@ -122,6 +132,7 @@ cc_toolchain_config(
extra_include = "/usr/lib/gcc/i686-w64-mingw32",
extra_linker_flags = [
"-L/usr/lib/gcc/i686-w64-mingw32/8.3-posix",
"-ldbghelp",
"-pthread",
],
linker_path = "/usr/bin/ld",
Expand All @@ -139,6 +150,7 @@ cc_toolchain_config(
extra_include = "/usr/lib/gcc/x86_64-w64-mingw32/8.3-posix/include",
extra_linker_flags = [
"-L/usr/lib/gcc/x86_64-w64-mingw32/8.3-posix",
"-ldbghelp",
],
linker_path = "/usr/bin/ld",
sysroot = "/usr/x86_64-w64-mingw32",
Expand Down

0 comments on commit dda7ffd

Please sign in to comment.