This is an archive of the discontinued LLVM Phabricator instance.

[NFC][cmake] Build fix in tools/llvm-config/CMakeLists.txt
ClosedPublic

Authored by GBuella on Feb 25 2019, 7:03 AM.

Details

Summary

To avoid the following error message (using cmake version 3.13.4) :

CMake Error at tools/llvm-config/CMakeLists.txt:37 (string):
Syntax error in cmake code  when parsing string-std=[^ ]\+Invalid escape sequence \+

Diff Detail

Repository
rL LLVM

Event Timeline

GBuella created this revision.Feb 25 2019, 7:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2019, 7:03 AM

Has this change been tested with newer older versions of cmake too? Was there a release note from CMake that announced the deprecation of this kind of escape sequence?

mgorny accepted this revision.Jul 7 2019, 3:04 AM

LGTM. According to CMake manual, plain + is the only correct form and if \+ worked at all, it was probably only by accident.

That said, you'll need to update the patch since third match was added below.

This revision is now accepted and ready to land.Jul 7 2019, 3:04 AM
This revision was automatically updated to reflect the committed changes.