summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstrap b/bootstrap
index 1fb6698..9dff3df 100755
--- a/bootstrap
+++ b/bootstrap
@@ -537,10 +537,10 @@ fi
TMPFILE=`cmake_tmp_file`
cat > "${TMPFILE}.c" <<EOF
#include<stdio.h>
-int main()
+int main(int argc, char* argv[])
{
- printf("1\n");
- return 0;
+ printf("%d\n", (argv != 0));
+ return argc-1;
}
EOF
for a in ${cmake_c_compilers}; do