head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.18 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.16 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.14 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.12 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.10 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.8 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.6 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.4 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.2 pkgsrc-2024Q1-base:1.1; locks; strict; comment @# @; 1.1 date 2024.01.01.12.01.00; author ryoon; state Exp; branches; next ; commitid O2PcmBt1d9Sm1KSE; desc @@ 1.1 log @devel/bazel: import bazel-6.4.0 {Fast, Correct} - Choose two Build and test software of any size, quickly and reliably. * Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds. * One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux. * Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo. * Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community. @ text @$NetBSD$ * GCC 10.5.0 with -isystem, absolute path and symlink generates unexpected .d file when -MD is specified. Bazel would not accept such .d files. --- tools/cpp/bsd_cc_toolchain_config.bzl.orig 2023-12-05 16:43:07.613565028 +0000 +++ tools/cpp/bsd_cc_toolchain_config.bzl @@@@ -56,7 +56,7 @@@@ all_link_actions = [ def _impl(ctx): cpu = ctx.attr.cpu - is_bsd = cpu == "freebsd" or cpu == "openbsd" + is_bsd = cpu == "freebsd" or cpu == "netbsd" or cpu == "openbsd" compiler = "compiler" toolchain_identifier = "local_{}".format(cpu) if is_bsd else "stub_armeabi-v7a" host_system_name = "local" if is_bsd else "armeabi-v7a" @@@@ -241,17 +241,19 @@@@ def _impl(ctx): else: features = [supports_dynamic_linker_feature, supports_pic_feature] - if (is_bsd): + if is_bsd and not (cpu == "netbsd"): cxx_builtin_include_directories = ["/usr/lib/clang", "/usr/local/include", "/usr/include"] + elif (cpu == "netbsd"): + cxx_builtin_include_directories = ["@@PREFIX@@/lib/clang", "@@PREFIX@@/include", "/usr/include"] else: cxx_builtin_include_directories = [] - if is_bsd: + if is_bsd and not (cpu == "netbsd"): tool_paths = [ tool_path(name = "ar", path = "/usr/bin/ar"), tool_path(name = "cpp", path = "/usr/bin/cpp"), tool_path(name = "dwp", path = "/usr/bin/dwp"), - tool_path(name = "gcc", path = "/usr/bin/clang"), + tool_path(name = "gcc", path = "/usr/bin/clang"), tool_path(name = "gcov", path = "/usr/bin/gcov"), tool_path(name = "ld", path = "/usr/bin/ld"), tool_path(name = "nm", path = "/usr/bin/nm"), @@@@ -259,6 +261,19 @@@@ def _impl(ctx): tool_path(name = "objdump", path = "/usr/bin/objdump"), tool_path(name = "strip", path = "/usr/bin/strip"), ] + elif (cpu == "netbsd"): + tool_paths = [ + tool_path(name = "ar", path = "/usr/bin/ar"), + tool_path(name = "cpp", path = "/usr/bin/cpp"), + tool_path(name = "dwp", path = "/usr/bin/dwp"), + tool_path(name = "gcc", path = "@@PREFIX@@/bin/clang"), + tool_path(name = "gcov", path = "/usr/bin/gcov"), + tool_path(name = "ld", path = "/usr/bin/ld"), + tool_path(name = "nm", path = "/usr/bin/nm"), + tool_path(name = "objcopy", path = "/usr/bin/objcopy"), + tool_path(name = "objdump", path = "/usr/bin/objdump"), + tool_path(name = "strip", path = "/usr/bin/strip"), + ] else: tool_paths = [ tool_path(name = "ar", path = "/bin/false"), @