summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-03-01 11:20:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-03-01 11:20:23 +0300
commit6afdf3ae1b8c3cc03c5f561aab86b17ffce19284 (patch)
tree974ac3d6020da3b13ba54559e7053e0b3771c9f1
parent0ca0851a01251b960ba19d958978004168f58593 (diff)
Make use of '\n' regex substitution escape sequence in libcrypto buildfile
-rw-r--r--libcrypto/libcrypto/buildfile8
1 files changed, 1 insertions, 7 deletions
diff --git a/libcrypto/libcrypto/buildfile b/libcrypto/libcrypto/buildfile
index ef00ff3..b8503a1 100644
--- a/libcrypto/libcrypto/buildfile
+++ b/libcrypto/libcrypto/buildfile
@@ -176,14 +176,8 @@ cflags =
for f: $c.poptions $c.coptions
cflags += $regex.replace($f, '(\\|")', '\\\1')
-# @@ Get rid of this when we add support for '\n' in regex substitution alone
-# '\1', etc.
-#
-nl='
-'
-
h{buildinf-body}: in{buildinf-body}
-h{buildinf-body}: cflags = $regex.merge($cflags, '(.+)', "$nl \" \\1\"")
+h{buildinf-body}: cflags = $regex.merge($cflags, '(.+)', '\n " \1"')
# Note that we have to add "-I$src_root" for the headers auto-generating
# machinery to work properly.