mirror of
https://github.com/codeplea/genann
synced 2024-11-23 15:00:00 +03:00
Changed build to work with both gcc and clang.
This commit is contained in:
parent
b1fcdf7f69
commit
064703e332
@ -1,2 +1,7 @@
|
|||||||
language: c
|
language: c
|
||||||
|
|
||||||
|
compiler:
|
||||||
|
- clang
|
||||||
|
- gcc
|
||||||
|
|
||||||
script: make
|
script: make
|
||||||
|
3
Makefile
3
Makefile
@ -1,5 +1,4 @@
|
|||||||
CC = gcc
|
CCFLAGS = -Wall -Wshadow -O2 -g
|
||||||
CCFLAGS = -ansi -Wall -Wshadow -O2 -g
|
|
||||||
LFLAGS = -lm
|
LFLAGS = -lm
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ int main(int argc, char *argv[])
|
|||||||
fclose(saved);
|
fclose(saved);
|
||||||
|
|
||||||
if (!ann) {
|
if (!ann) {
|
||||||
printf("Error loading ANN from file.", save_name);
|
printf("Error loading ANN from file: %s.", save_name);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user