aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-04-06 19:18:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2022-04-06 19:19:06 +0200
commitc4dc23cb64d6dcadea561a9f0b5ea7a7a5ef7899 (patch)
treec6d89524d7293e4379eac9c687551cabe38e3793
parentscript: use memfd_create instead of O_TMPFILE (diff)
downloadcscript-master.tar.xz
cscript-master.zip
Use -O2 -march=native -pipe alwaysHEADmaster
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--cscript.c4
-rwxr-xr-xexample.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/cscript.c b/cscript.c
index 65ab92a..568bf71 100644
--- a/cscript.c
+++ b/cscript.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0
*
- * Copyright (C) 2018-2021 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ * Copyright (C) 2018-2022 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*/
#include <stdio.h>
@@ -60,7 +60,7 @@ int main(int argc, char *argv[], char *envp[])
}
close(pipes[0]);
}
- execlp(cc, cc, "-xc", "-o", output_path, "-", NULL);
+ execlp(cc, cc, "-pipe", "-xc", "-o", output_path, "-O2", "-march=native", "-", NULL);
_exit(1);
}
diff --git a/example.c b/example.c
index a1cc031..1b27f63 100755
--- a/example.c
+++ b/example.c
@@ -2,7 +2,7 @@
/* SPDX-License-Identifier: GPL-2.0
*
- * Copyright (C) 2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ * Copyright (C) 2018-2022 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*/
#define _GNU_SOURCE