[llvm] r365277 - gn build: Sort cxx_sources in libcxx build file

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 7 09:36:12 PDT 2019


Author: nico
Date: Sun Jul  7 09:36:11 2019
New Revision: 365277

URL: http://llvm.org/viewvc/llvm-project?rev=365277&view=rev
Log:
gn build: Sort cxx_sources in libcxx build file

Since these are in a custom list, `gn format` doesn't automatically sort
them.

Now their order matches the CMake build.

No additions or deletions, this just sorts the files that are there.

Modified:
    llvm/trunk/utils/gn/secondary/libcxx/src/BUILD.gn

Modified: llvm/trunk/utils/gn/secondary/libcxx/src/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/libcxx/src/BUILD.gn?rev=365277&r1=365276&r2=365277&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/libcxx/src/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/libcxx/src/BUILD.gn Sun Jul  7 09:36:11 2019
@@ -114,50 +114,50 @@ config("cxx_config") {
 
 cxx_sources = [
   "algorithm.cpp",
-  "string.cpp",
-  "ios.cpp",
+  "any.cpp",
+  "bind.cpp",
+  "charconv.cpp",
+  "chrono.cpp",
   "condition_variable.cpp",
+  "debug.cpp",
+  "exception.cpp",
+  "functional.cpp",
+  "future.cpp",
   "hash.cpp",
-  "random.cpp",
+  "include/apple_availability.h",
+  "include/atomic_support.h",
+  "include/config_elast.h",
+  "include/refstring.h",
+  "ios.cpp",
+  "iostream.cpp",
+  "locale.cpp",
+  "memory.cpp",
+  "mutex.cpp",
   "new.cpp",
-  "functional.cpp",
-  "exception.cpp",
-  "support/runtime/exception_msvc.ipp",
-  "support/runtime/exception_libcxxabi.ipp",
+  "optional.cpp",
+  "random.cpp",
+  "regex.cpp",
+  "shared_mutex.cpp",
+  "stdexcept.cpp",
+  "string.cpp",
+  "strstream.cpp",
+  "support/runtime/exception_fallback.ipp",
   "support/runtime/exception_glibcxx.ipp",
-  "support/runtime/new_handler_fallback.ipp",
+  "support/runtime/exception_libcxxabi.ipp",
   "support/runtime/exception_libcxxrt.ipp",
-  "support/runtime/exception_pointer_unimplemented.ipp",
+  "support/runtime/exception_msvc.ipp",
   "support/runtime/exception_pointer_cxxabi.ipp",
-  "support/runtime/exception_pointer_msvc.ipp",
-  "support/runtime/exception_fallback.ipp",
   "support/runtime/exception_pointer_glibcxx.ipp",
-  "variant.cpp",
-  "shared_mutex.cpp",
-  "optional.cpp",
-  "strstream.cpp",
-  "include/apple_availability.h",
-  "include/refstring.h",
-  "include/config_elast.h",
-  "include/atomic_support.h",
-  "future.cpp",
+  "support/runtime/exception_pointer_msvc.ipp",
+  "support/runtime/exception_pointer_unimplemented.ipp",
+  "support/runtime/new_handler_fallback.ipp",
   "system_error.cpp",
-  "bind.cpp",
-  "iostream.cpp",
-  "stdexcept.cpp",
-  "valarray.cpp",
-  "chrono.cpp",
+  "thread.cpp",
   "typeinfo.cpp",
-  "locale.cpp",
-  "debug.cpp",
-  "charconv.cpp",
   "utility.cpp",
-  "regex.cpp",
-  "mutex.cpp",
-  "any.cpp",
-  "thread.cpp",
+  "valarray.cpp",
+  "variant.cpp",
   "vector.cpp",
-  "memory.cpp",
 ]
 if (target_os == "win") {
   cxx_sources += [




More information about the llvm-commits mailing list