llvm-project/llvm/utils/gn/secondary/compiler-rt/lib
Petr Hosek c6094f0495 [GN] Generation failure caused by trailing space in file name
When I executed gn.py gen out/gn I got the following error:

ERROR at //compiler-rt/lib/builtins/BUILD.gn:162:7: Only source, header, and object files belong in the sources of a static_library. //compiler-rt/lib/builtins/emutls.c  is not one of the valid types.
      "emutls.c ",
      ^----------
See //compiler-rt/lib/BUILD.gn:3:5: which caused the file to be included.
    "//compiler-rt/lib/builtins",
    ^---------------------------
It turns out to be that the latest gn doesn't accept ill-format file name. And the emutls.c above has a trailing space.
Remove the trailing space should work.

Patch By: myhsu
Differential Revision: https://reviews.llvm.org/D63449

llvm-svn: 364162
2019-06-23 23:12:10 +00:00
..
builtins [GN] Generation failure caused by trailing space in file name 2019-06-23 23:12:10 +00:00
cfi gn build: Add a cfi/sources target. 2019-03-02 18:29:56 +00:00
hwasan gn build: Merge r363483. 2019-06-17 20:03:11 +00:00
interception gn build: Add headers to compiler-rt build files. 2019-01-16 18:45:12 +00:00
sanitizer_common Remove esan. 2019-03-11 20:23:40 +00:00
ubsan gn build: Add headers to compiler-rt build files. 2019-01-16 18:45:12 +00:00
BUILD.gn [gn] Support for building compiler-rt builtins 2019-04-05 21:30:40 +00:00