mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 18:41:23 +00:00
850fad7de8
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
|
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
nolibc-test.c |