From fc3f53fcda1adf8720462ba4c45406860514c1b2 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 1 Jan 2021 22:12:58 -0500 Subject: [PATCH] [gn build] (manually) port 5e31e226b5: Use Py3 for the build Made necessary by 20670ba440, the first Py3-only change. --- llvm/utils/gn/.gn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/utils/gn/.gn b/llvm/utils/gn/.gn index 6c77157731e9..4eccc2fc168c 100644 --- a/llvm/utils/gn/.gn +++ b/llvm/utils/gn/.gn @@ -8,6 +8,9 @@ buildconfig = "//llvm/utils/gn/build/BUILDCONFIG.gn" # whitelisting things here. exec_script_whitelist = [] +# Execute action() targets using Python 3. +script_executable = "python3" + # The normal GN setup is to have BUILD.gn files in-tree and a root BUILD.gn # file. Since LLVM's GN build is unofficial, set secondary_source to tell GN # that e.g. llvm/lib/Demangle/BUILD.gn is found at