| 1 | if [scip-shell system . . `[`. -n $CC ] |
| 2 | then |
| 3 | if [scip-shell system . . `[`. $CC=clang ] |
| 4 | then |
| 5 | clangscip-shell system . . clang. test.c -include mathc.h -c mathc.c && clangscip-shell system . . clang. -o test_clang test.o mathc.o -lm && chmodscip-shell system . . chmod. +x test_clang |
| 6 | ./test_clang |
| 7 | elif [scip-shell system . . `[`. $CC=gcc ] |
| 8 | then |
| 9 | gccscip-shell system . . gcc. -o test_gcc test.c mathc.c -I. -lm && chmodscip-shell system . . chmod. +x test_gcc |
| 10 | ./test_gcc |
| 11 | else |
| 12 | echoscip-shell system . . echo. -e "unrecognized compiler" |
| 13 | exit |
| 14 | fi |
| 15 | else |
| 16 | echoscip-shell system . . echo. -e "CC is not defined, compiler cannot be identified" |
| 17 | fi |