mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-24 07:36:24 +01:00
Add compile flags
This commit is contained in:
parent
77911169e7
commit
0fc6271828
4
make.sh
4
make.sh
@ -1,10 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
FLAGS="-std=c99 -lm"
|
||||||
|
|
||||||
if [[ $1 == "preview" ]]; then
|
if [[ $1 == "preview" ]]; then
|
||||||
[[ $2 ]] || set -- "$1" "build"
|
[[ $2 ]] || set -- "$1" "build"
|
||||||
if [[ $2 == "build" ]]; then
|
if [[ $2 == "build" ]]; then
|
||||||
mkdir -p out
|
mkdir -p out
|
||||||
gcc src/mnist/preview.c -o out/preview_mnist
|
gcc src/mnist/preview.c -o out/preview_mnist $FLAGS
|
||||||
exit
|
exit
|
||||||
elif [[ $2 == "train" ]]; then
|
elif [[ $2 == "train" ]]; then
|
||||||
[[ -f out/preview_mnist ]] || $0 preview build
|
[[ -f out/preview_mnist ]] || $0 preview build
|
||||||
|
Loading…
Reference in New Issue
Block a user