From 01e339ca1fd0278358eb4c524431beb5d42403fe Mon Sep 17 00:00:00 2001 From: Vinnie Magro Date: Fri, 3 Jan 2025 08:35:09 -0800 Subject: [PATCH] [easy][antlir][oss] fix distro toolchain on oss Summary: The default code for this in the prelude https://www.internalfb.com/code/fbsource/[d9e5d887126868e28dd50b8911721d351f73a38a]/fbcode/buck2/prelude/cxx/cxx_toolchain_macro_layer.bzl?lines=13-19 relies on config settings that do not exist in the opensource prelude Test Plan: Export to PR Differential Revision: D67799115 --- antlir/distro/toolchain/cxx/defs.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/antlir/distro/toolchain/cxx/defs.bzl b/antlir/distro/toolchain/cxx/defs.bzl index 7cf55d7462a..6c786e26dc0 100644 --- a/antlir/distro/toolchain/cxx/defs.bzl +++ b/antlir/distro/toolchain/cxx/defs.bzl @@ -67,6 +67,7 @@ def _single_image_cxx_toolchain( linker = _layer_tool(name, "clang"), linker_flags = ["-fuse-ld=lld"] + _llvm_base_args + _include_sysroot(sysroot, "L"), linker_type = "gnu", + generate_linker_maps = False, # @oss-enable nm = _layer_tool(name, "nm"), objcopy_for_shared_library_interface = _layer_tool(name, "objcopy"), requires_archives = True,