aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-05-14 10:15:26 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-18 11:34:42 +0200
commit58d6f672b940ad006cb091942d4413888a6fc738 (patch)
tree8bbcbd16806abf299d5e3be0ed79da1caea6255b /sys
parent1eaedf0feaf2b71d2a29b8bc8c4697e6997edbf8 (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.go4
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"); }
`