diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-11-30 09:39:02 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-12-06 07:21:36 +0300 |
commit | aa943d098e0299ea87485a607353d152f5ea5012 (patch) | |
tree | b3f2cd52efc4568d5f7deb6ca99684e2f5d22a62 /node.gypi | |
parent | 7bcbf044ddc864be9d6c711a75f3a33b6a3c652e (diff) |
http: make parser choice a runtime flag
Add a `--http-parser=llhttp` vs `--http-parser=traditional`
command line switch, to make testing and comparing the new
llhttp-based implementation easier.
PR-URL: https://github.com/nodejs/node/pull/24739
Refs: https://github.com/nodejs/node/issues/24730
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'node.gypi')
-rw-r--r-- | node.gypi | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/node.gypi b/node.gypi index 665fc627b3f..4bfaa01ff3e 100644 --- a/node.gypi +++ b/node.gypi @@ -164,12 +164,14 @@ }], [ 'node_experimental_http_parser=="true"', { - 'defines': [ 'NODE_EXPERIMENTAL_HTTP' ], - 'dependencies': [ 'deps/llhttp/llhttp.gyp:llhttp' ], - }, { - 'conditions': [ [ 'node_shared_http_parser=="false"', { - 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ], - } ] ], + 'defines': [ 'NODE_EXPERIMENTAL_HTTP_DEFAULT' ], + } ], + + [ 'node_shared_http_parser=="false"', { + 'dependencies': [ + 'deps/http_parser/http_parser.gyp:http_parser', + 'deps/llhttp/llhttp.gyp:llhttp' + ], } ], [ 'node_shared_cares=="false"', { |