diff options
| author | Andrew Clayton <a.clayton@nginx.com> | 2024-12-19 23:51:59 +0000 |
|---|---|---|
| committer | Andrew Clayton <a.clayton@nginx.com> | 2025-01-10 04:16:09 +0000 |
| commit | 1149d9ac4116cd6d447b01ef6a5747d215367919 (patch) | |
| tree | ff6367eefcafc55c6f3193d181e57dcf17c31b07 /src | |
| parent | 753e298477fb895b2809275baafa2ba9fda18f37 (diff) | |
| download | unit-1149d9ac4116cd6d447b01ef6a5747d215367919.tar.gz unit-1149d9ac4116cd6d447b01ef6a5747d215367919.tar.bz2 | |
auto/otel: Make use of nxt_feature_name
When building with --otel on macOS for example I was seeing compile
failures with the cpu_set_t stuff which should only be used under Linux.
It turned out that despite
checking for Linux sched_getaffinity() ... not found
we were getting
#ifndef NXT_HAVE_LINUX_SCHED_GETAFFINITY
#define NXT_HAVE_LINUX_SCHED_GETAFFINITY 1
#endif
in build/include/nxt_auto_config.h
It seems this was due to the
. auto/feature
in auto/otel, this check happens right after the above. Without having
nxt_feature_name=NXT_HAVE_OTEL
set.
Instead we were adding the define for that manually.
Doing auto/feature without having a nxt_feature_name must have used the
last set one and enabled it.
Set nxt_feature_name and remove the manual editing of nxt_auto_config.h
Fixes: 9d3dcb800 ("otel: add build tooling to include otel code")
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
