[gn build] port a8025e06fc0f more
authorNico Weber <thakis@chromium.org>
Sun, 5 Dec 2021 18:15:56 +0000 (13:15 -0500)
committerNico Weber <thakis@chromium.org>
Sun, 5 Dec 2021 18:17:03 +0000 (13:17 -0500)
src/ryu/*.cpp includes files relative to src, so src/ needs
to be passes as -I flag now.

llvm/utils/gn/secondary/libcxx/src/BUILD.gn

index fbd9599..ae96840 100644 (file)
@@ -227,6 +227,7 @@ if (libcxx_enable_shared) {
       ]
     }
     sources = cxx_sources
+    include_dirs = [ "." ]
     deps = [
       "//compiler-rt/lib/builtins",
       "//libcxx/include",
@@ -270,6 +271,7 @@ if (libcxx_enable_static) {
     complete_static_lib = true
     configs -= [ "//llvm/utils/gn/build:thin_archive" ]
     sources = cxx_sources
+    include_dirs = [ "." ]
     if (libcxx_hermetic_static_library) {
       cflags = [ "-fvisibility=hidden" ]
       if (libcxx_enable_new_delete_definitions) {