diff options
author | Zhangjin Wu <falcon@tinylab.org> | 2023-07-15 21:36:46 +0300 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2023-08-23 05:40:22 +0300 |
commit | 850fad7de8277d3ad1009c766d0edfdd67e744eb (patch) | |
tree | 971d8a0d8fa0a7d74bc8777f46c12772d03d43e7 /tools/include | |
parent | b81434073b7a113f37f2a2b69c6c28605d4ffb6f (diff) | |
download | linux-850fad7de8277d3ad1009c766d0edfdd67e744eb.tar.xz |
selftests/nolibc: allow test -include /path/to/nolibc.h
As the head comment of nolibc-test.c shows, it can be built in 3 ways:
$(CC) -nostdlib -include /path/to/nolibc.h => NOLIBC already defined
$(CC) -nostdlib -I/path/to/nolibc/sysroot => _NOLIBC_* guards are present
$(CC) with default libc => NOLIBC* never defined
Only last two of them are tested currently, let's allow test the first one too.
This may help to find issues about using nolibc.h to build programs. it
derives from this change:
commit 3a8039e289a3 ("tools/nolibc: Fix build of stdio.h due to header ordering")
Usage:
// test with sysroot by default
$ make run-user
// test without sysroot, using nolibc.h directly
$ make run-user NOLIBC_SYSROOT=0
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions