[gn build] manually port c747b7d1d9a2 (config.osx_sysroot)
authorNico Weber <thakis@chromium.org>
Tue, 22 Jun 2021 16:50:45 +0000 (12:50 -0400)
committerNico Weber <thakis@chromium.org>
Tue, 22 Jun 2021 16:50:58 +0000 (12:50 -0400)
llvm/utils/gn/secondary/llvm/test/BUILD.gn

index 3d57721..6820260 100644 (file)
@@ -85,6 +85,10 @@ write_lit_config("lit_site_cfg") {
     "LLVM_BUILD_EXAMPLES=0",
     "LLVM_HAVE_TF_AOT=0",
     "LLVM_HAVE_TF_API=0",
+
+    # See https://reviews.llvm.org/D104332
+    # FIXME: Maybe set to mac_sdk_path if host_os == "mac"?
+    "CMAKE_OSX_SYSROOT=",
   ]
 
   if (host_cpu == "x64") {