aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c4
-rw-r--r--makefile2
2 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 1cc6b57..b3d9eea 100644
--- a/main.c
+++ b/main.c
@@ -33,7 +33,7 @@ void *create_make() {
/* Create simple makefile */
int fd = creat("makefile", 00644);
FILE *file = fdopen(fd, "w");
- fprintf(file, "debug: main.c\n\tgcc -Wall main.c -o ./bin/debug\nrelease: main.c\n\tgcc -O2 -march-native main.c -o ./bin/release");
+ fprintf(file, "debug: main.c\n\tgcc -Wall main.c -o ./bin/debug\nrelease: main.c\n\tgcc -O2 -march=native main.c -o ./bin/release");
fclose(file);
return NULL;
@@ -73,7 +73,7 @@ int main() {
pid_t x_pid;
if ((x_pid = fork()) == 0) {
- execl("./bin/tmp", "tmp", NULL);
+ execl("./bin/debug", "debug", NULL);
}
waitpid(x_pid, NULL, 0);
diff --git a/makefile b/makefile
index 239005f..429650c 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
debug: main.c
gcc -Wall main.c -o ./bin/debug
release: main.c
- gcc -O2 -march-native main.c -o ./bin/release \ No newline at end of file
+ gcc -O2 -march=native main.c -o ./bin/release