Checks whether "-Wdelcaration-after-statement" is available in gcc before
trying to use it (simple shell script trick from Shin-Ichi).
This commit is contained in:
parent
050c23b5ef
commit
905b5552fa
3 changed files with 14 additions and 3 deletions
6
src/test-option.sh
Executable file
6
src/test-option.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo 'main(){}' > dummy.c
|
||||
gcc $1 dummy.c > /dev/null 2>&1 && echo $1
|
||||
rm -f dummy.c a.out
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue