summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRuslan Bekenev <furyinbox@gmail.com>2017-04-23 19:45:46 +0300
committerGibson Fahnestock <gibfahn@gmail.com>2017-05-15 20:24:03 +0100
commit32d798174182ea7fb1442c278d45a152671d9b40 (patch)
tree22b3a19f878e618f6636f63bd3d2ae12344f8aeb /configure
parent64f9adc787abdfe6f894c5e084a68356fa240355 (diff)
downloadnode-new-32d798174182ea7fb1442c278d45a152671d9b40.tar.gz
build: use do_not_edit variable where possible
We should not use hardcoded string to warn users about file was generated by configure script. Since we already have do_not_edit variable we can use it PR-URL: https://github.com/nodejs/node/pull/12610 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index c8996b0b4a..06f1f9a0d3 100755
--- a/configure
+++ b/configure
@@ -1358,8 +1358,7 @@ if options.prefix:
config = '\n'.join(map('='.join, config.iteritems())) + '\n'
-write('config.mk',
- '# Do not edit. Generated by the configure script.\n' + config)
+write('config.mk', do_not_edit + config)
gyp_args = [sys.executable, 'tools/gyp_node.py', '--no-parallel']