Merge pull request #10204 from 9999years/replace-foo-in-big-cxx-literal

Replace `foo` with `__NIX_STR` in `cxx-big-literal`
This commit is contained in:
Eelco Dolstra 2024-03-10 13:11:36 +01:00 committed by GitHub
commit e65e9114d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 $@