Page MenuHomePhabricator

[GN] Generation failure caused by trailing space in file name

Authored by myhsu on Jun 17 2019, 11:04 AM.




When I executed gen out/gn I got the following error:

ERROR at //compiler-rt/lib/builtins/ 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/ which caused the file to be included.

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.

Diff Detail


Event Timeline

myhsu created this revision.Jun 17 2019, 11:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2019, 11:04 AM
phosek accepted this revision.Jun 17 2019, 2:50 PM


This revision is now accepted and ready to land.Jun 17 2019, 2:50 PM

Thanks for the review. I don't have commit permission, can you help me to commit?

This revision was automatically updated to reflect the committed changes.