Skip to content

Commit

Permalink
[antlir][oss] fix distro toolchain on oss (#274)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #274

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
https://github.com/facebook/buck2/blob/main/prelude/cxx/cxx_toolchain_macro_layer.bzl#L13-L19
relies on config settings that do not exist in the opensource prelude

Test Plan: Export to PR

Reviewed By: sergeyfd

Differential Revision: D67799115
  • Loading branch information
vmagro authored and facebook-github-bot committed Jan 6, 2025
1 parent d92a0ad commit b874997
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions antlir/distro/toolchain/cxx/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b874997

Please sign in to comment.