[gn build] Make NOSORT line actually work
authorNico Weber <nicolasweber@gmx.de>
Mon, 24 Dec 2018 23:06:29 +0000 (23:06 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 24 Dec 2018 23:06:29 +0000 (23:06 +0000)
GN wants the NOSORT line to be the first line of a comment block, not the last
line.

I sent https://gn-review.googlesource.com/c/gn/+/3560 to support having it in
the last line too, but since it will be a while until everyone has that change
even if it's expected, use the form that works today.

Differential Revision: https://reviews.llvm.org/D56065

llvm-svn: 350060

llvm/utils/gn/secondary/clang/lib/Headers/BUILD.gn

index 6e9be8a..c2b89af 100644 (file)
@@ -34,9 +34,9 @@ copy("Headers") {
     ":arm_headers",
   ]
 
+  # NOSORT
   # Tell `gn format` to not reorder the sources list: Its order matches CMake,
   # and the ordering is alphabetical but ignores leading underscores.
-  # NOSORT
   sources = [
     "adxintrin.h",
     "altivec.h",