https://llvm.org/bugs/show_bug.cgi?id=25904
Bug ID: 25904 Summary: LLVM_CXXFLAGS is used without escaping quotes Product: Build scripts Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: cmake Assignee: unassignedb...@nondot.org Reporter: jerem...@apple.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified I have updated our build system to add -DSVN_REVISION='"<revision>"' to CXXFLAGS at configure-time when building clang in order to work around bug #25681. Unfortunately, does not work because it is added to the LLVM_CXXFLAGS macro without escaping the quotes: trunk/tools/llvm-config/llvm-config.cpp:441:45: error: expected ';' after expression OS << ActiveIncludeOption << ' ' << LLVM_CXXFLAGS << '\n'; ^ build/tools/llvm-config/BuildVariables.inc:24:51: note: expanded from macro 'LLVM_CXXFLAGS' #define LLVM_CXXFLAGS "-pipe -Os -DSVN_REVISION='"256125"' -std=c++11 -stdlib=libc++ -arch x86_64 -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -std=c++11 -g -fno-exceptions -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS" ^ Whatever sets LLVM_CXXFLAGS in BuildVariables.inc should be sure to escape it appropriately. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs