aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorRebecca Turner <rbt@sent.as>2024-03-12 11:58:36 -0700
committerJade Lovelace <lix@jade.fyi>2024-03-12 11:58:36 -0700
commitda2f1651283df312a5e1076c8c5139ba54b27008 (patch)
tree3e2b49cc33c89446fb3dd8fd6649b13d965b7c87 /mk
parent1b8662b85cb70e02c2a1650e290ec3007b6c6d30 (diff)
Backport PR#10204 by 9999years: Replace `foo` with `__NIX_STR` in `cxx-big-literal`
Looks a little nicer when you check the generated sources. (cherry-picked from commit e65e9114d2797cc4380da218972979dda7395df6) Change-Id: I91bd185bf12deef72d20fba36178ff42a686c518 Upstream-PR: https://github.com/NixOS/nix/pull/10204
Diffstat (limited to 'mk')
-rw-r--r--mk/cxx-big-literal.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/cxx-big-literal.mk b/mk/cxx-big-literal.mk
index 85365df8e..d64a171c8 100644
--- a/mk/cxx-big-literal.mk
+++ b/mk/cxx-big-literal.mk
@@ -1,5 +1,5 @@
%.gen.hh: %
- @echo 'R"foo(' >> $@.tmp
+ @echo 'R"__NIX_STR(' >> $@.tmp
$(trace-gen) cat $< >> $@.tmp
- @echo ')foo"' >> $@.tmp
+ @echo ')__NIX_STR"' >> $@.tmp
@mv $@.tmp $@