FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

build: deprecate always enabled `--enable-static` · nodejs/node@50174cb · GitHub

/ node Public

Commit 50174cb

Browse files
authored andcommitted
build: deprecate always enabled --enable-static
`libnode.a` is now always produced, unless configured with flag `--shared`. This deprecates the no-op flag `--enable-static`. Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net> PR-URL: #65103 Refs: #65026 Refs: #63626 Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5506f77 commit 50174cb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎configure.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@
11011101
action='store_true',
11021102
dest='enable_static',
11031103
default=None,
1104-
help='build as static library')
1104+
help=argparse.SUPPRESS) # Deprecated
11051105

11061106
parser.add_argument('--no-browser-globals',
11071107
action='store_true',
@@ -2075,9 +2075,6 @@ def configure_node(o):
20752075
if options.v8_options:
20762076
o['variables']['node_v8_options'] = options.v8_options.replace('"', '\\"')
20772077

2078-
if options.enable_static:
2079-
o['variables']['node_target_type'] = 'static_library'
2080-
20812078
o['variables']['node_debug_lib'] = b(options.node_debug_lib)
20822079

20832080
if options.debug_nghttp2:
@@ -2120,10 +2117,13 @@ def configure_node(o):
21202117
else:
21212118
o['variables']['coverage'] = 'false'
21222119

2120+
if options.enable_static and options.shared:
2121+
error('--enable-static must not be set with --shared')
2122+
if options.enable_static:
2123+
warn('--enable-static is deprecated and libnode.a is always produced')
2124+
21232125
if options.shared:
21242126
o['variables']['node_target_type'] = 'shared_library'
2125-
elif options.enable_static:
2126-
o['variables']['node_target_type'] = 'static_library'
21272127
else:
21282128
o['variables']['node_target_type'] = 'executable'
21292129

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL