diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-05-14 10:15:26 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-05-18 11:34:42 +0200 |
| commit | 58d6f672b940ad006cb091942d4413888a6fc738 (patch) | |
| tree | 8bbcbd16806abf299d5e3be0ed79da1caea6255b /sys | |
| parent | 1eaedf0feaf2b71d2a29b8bc8c4697e6997edbf8 (diff) | |
sys/targets: check that <dirent.h> works in compilation test
Without linux-libc-dev:i386 installed the test passes,
but executor compilation fails because <dirent.h> is broken.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/targets/targets.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go index 0bcba8a21..ee42ea3ad 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -554,10 +554,10 @@ func checkFlagSupported(target *Target, flag string) bool { var runningOnCI = os.Getenv("CI") != "" var useClang = os.Getenv("SYZ_CLANG") != "" -// <algorithm> is included by executor, so we test is as well. const simpleProg = ` #include <stdio.h> -#include <algorithm> +#include <dirent.h> // ensures that system headers are installed +#include <algorithm> // ensures that C++ headers are installed int main() { printf("Hello, World!\n"); } ` |
