node/deps/histogram/histogram.gyp
Richard Lau dcbb21e06f
build: suppress compiler warnings for histogram
Synchronize compiler flags in the gyp build and unofficial gn build
of `deps/histogram`.

Signed-off-by: Richard Lau <richard.lau@ibm.com>
PR-URL: https://github.com/nodejs/node/pull/63980
Fixes: https://github.com/nodejs/node/issues/63979
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2026-06-20 15:05:11 +00:00

48 lines
1.2 KiB
Python

{
'variables': {
'histogram_sources': [
'src/hdr_histogram.c',
'include/hdr/hdr_histogram.h',
]
},
'targets': [
{
'target_name': 'histogram',
'type': 'static_library',
'cflags': ['-fvisibility=hidden'],
'xcode_settings': {
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
},
'conditions': [
[ 'clang==1', {
'conditions': [
[ 'OS=="win"', {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
'-Wno-atomic-alignment',
'-Wno-incompatible-pointer-types',
'-Wno-unused-function'
],
},
},
}, {
'cflags': [
'-Wno-atomic-alignment',
'-Wno-incompatible-pointer-types',
'-Wno-unused-function'
],
}],
],
}],
],
'include_dirs': ['src', 'include'],
'direct_dependent_settings': {
'include_dirs': [ 'src', 'include' ]
},
'sources': [
'<@(histogram_sources)',
]
}
]
}