[llvm] r357830 - gn build: Pacify `gn format`

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 5 16:57:11 PDT 2019


Author: nico
Date: Fri Apr  5 16:57:10 2019
New Revision: 357830

URL: http://llvm.org/viewvc/llvm-project?rev=357830&view=rev
Log:
gn build: Pacify `gn format`

Modified:
    llvm/trunk/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn

Modified: llvm/trunk/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn?rev=357830&r1=357829&r2=357830&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn Fri Apr  5 16:57:10 2019
@@ -167,6 +167,8 @@ static_library("builtins") {
 
   if (target_os != "fuchsia" && !compiler_rt_baremetal_build) {
     sources += [
+      # This comment prevents `gn format` from putting the file on the same line
+      # as `sources +=`, for sync_source_lists_from_cmake.py.
       "clear_cache.c",
     ]
   }
@@ -326,6 +328,8 @@ static_library("builtins") {
     ]
     if (target_os == "mingw") {
       sources += [
+        # This comment prevents `gn format` from putting the file on the same
+        # line as `sources +=`, for sync_source_lists_from_cmake.py.
         "aarch64/chkstk.S",
       ]
     }
@@ -385,12 +389,16 @@ static_library("builtins") {
 
   if (target_cpu == "riscv") {
     sources += [
+      # This comment prevents `gn format` from putting the file on the same line
+      # as `sources +=`, for sync_source_lists_from_cmake.py.
       "riscv/mulsi3.S",
     ]
   }
 
   if (!compiler_rt_exclude_atomic_builtin) {
     sources += [
+      # This comment prevents `gn format` from putting the file on the same line
+      # as `sources +=`, for sync_source_lists_from_cmake.py.
       "atomic.c",
     ]
   }




More information about the llvm-commits mailing list