mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-12 16:29:31 +00:00
utils/llvm-build: Add trivial quoting of slashes for CMake fragment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
38f5c0da6d
commit
57574fa35e
@ -7,6 +7,19 @@ from util import *
|
|||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
|
def cmake_quote_string(value):
|
||||||
|
"""
|
||||||
|
cmake_quote_string(value) -> str
|
||||||
|
|
||||||
|
Return a quoted form of the given value that is suitable for use in CMake
|
||||||
|
language files.
|
||||||
|
"""
|
||||||
|
|
||||||
|
# Currently, we only handle escaping backslashes.
|
||||||
|
value = value.replace("\\", "\\\\")
|
||||||
|
|
||||||
|
return value
|
||||||
|
|
||||||
def mk_quote_string_for_target(value):
|
def mk_quote_string_for_target(value):
|
||||||
"""
|
"""
|
||||||
mk_quote_string_for_target(target_name) -> str
|
mk_quote_string_for_target(target_name) -> str
|
||||||
@ -388,7 +401,8 @@ class LLVMProjectInfo(object):
|
|||||||
for dep in dependencies:
|
for dep in dependencies:
|
||||||
print >>f, """\
|
print >>f, """\
|
||||||
configure_file(\"%s\"
|
configure_file(\"%s\"
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/DummyConfigureOutput)""" % (dep,)
|
${CMAKE_CURRENT_BINARY_DIR}/DummyConfigureOutput)""" % (
|
||||||
|
cmake_quote_string(dep),)
|
||||||
|
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user