Skip to content

Commit 5a511eb

Browse files
authored
Avoid pollution of Node's cflags by deps/ncrypto/unofficial.gni (#229)
Avoid pollution of Node's cflags by deps/ncrypto/unofficial.gni
1 parent c2ab870 commit 5a511eb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

deps/ncrypto/unofficial.gni

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ import("$node_v8_path/gni/v8.gni")
88
# The actual configurations are put inside a template in unofficial.gni to
99
# prevent accidental edits from contributors.
1010
template("ncrypto_gn_build") {
11-
config("ncrypto_config") {
11+
config("ncrypto_external_config") {
1212
include_dirs = [ "." ]
13+
}
14+
config("ncrypto_internal_config") {
1315
cflags = [
1416
"-Wno-deprecated-declarations",
1517
"-Wno-pessimizing-move",
@@ -27,7 +29,8 @@ template("ncrypto_gn_build") {
2729

2830
source_set(target_name) {
2931
forward_variables_from(invoker, "*")
30-
public_configs = [ ":ncrypto_config" ]
32+
configs += [ ":ncrypto_internal_config" ]
33+
public_configs = [ ":ncrypto_external_config" ]
3134
sources = gypi_values.ncrypto_sources
3235
deps = [ "$node_openssl_path" ]
3336
}

0 commit comments

Comments
 (0)