From 951aa44f87dddd5d488e8475a95c9c6026e382b7 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sun, 2 Jun 2024 15:16:48 -0400 Subject: [PATCH] Meta: Use the host CXX tool for linking as well For example, if you set host_cxx=clang in your args.gn, we would still use GCC for linking. This matches the CMake build now. --- Meta/gn/build/toolchain/BUILD.gn | 1 + 1 file changed, 1 insertion(+) diff --git a/Meta/gn/build/toolchain/BUILD.gn b/Meta/gn/build/toolchain/BUILD.gn index b3a8077b753..bd62bb9b67e 100644 --- a/Meta/gn/build/toolchain/BUILD.gn +++ b/Meta/gn/build/toolchain/BUILD.gn @@ -190,6 +190,7 @@ unix_toolchain("unix") { current_os = host_os cc = host_cc cxx = host_cxx + ld = host_cxx } }