diff options
author | Maciej MaĆecki <me@mmalecki.com> | 2012-12-21 05:56:47 +0400 |
---|---|---|
committer | Nathan Rajlich <nathan@tootallnate.net> | 2012-12-22 00:44:33 +0400 |
commit | f84bf5b6b174af0639813c9f3167f3593f2c5eb4 (patch) | |
tree | 55b5c2185d043296fdcf031d595a09670d350951 /configure | |
parent | 70eb227e80f10cf51288a5a3018e858480099df4 (diff) |
build: allow to specify custom tags
When building custom `node` versions (e.g., floating features/fixes from
different versions) it's often useful to specify a custom tag which
easily identifies build when invoking `node -v`.
Introduce a way to specify this tag in `node_version.h` file or by
running `./configure --tag="<tag>"`. Insert it right after the patch
version (and before `-pre`, if build is not a release).
Closes #4452.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure index a97e964f7b8..36dbdce35a7 100755 --- a/configure +++ b/configure @@ -265,6 +265,11 @@ parser.add_option("--xcode", dest="use_xcode", help="Generate build files for use with xcode") +parser.add_option("--tag", + action="store", + dest="tag", + help="Custom build tag") + (options, args) = parser.parse_args() @@ -490,6 +495,8 @@ def configure_node(o): else: o['variables']['node_use_perfctr'] = 'false' + o['variables']['node_tag'] = options.tag or '' + def configure_libz(o): o['variables']['node_shared_zlib'] = b(options.shared_zlib) |