From c4dc23cb64d6dcadea561a9f0b5ea7a7a5ef7899 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 6 Apr 2022 19:18:47 +0200 Subject: Use -O2 -march=native -pipe always Signed-off-by: Jason A. Donenfeld --- cscript.c | 4 ++-- example.c | 2 +- 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 . All Rights Reserved. + * Copyright (C) 2018-2022 Jason A. Donenfeld . All Rights Reserved. */ #include @@ -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 . All Rights Reserved. + * Copyright (C) 2018-2022 Jason A. Donenfeld . All Rights Reserved. */ #define _GNU_SOURCE -- cgit v1.2.3-59-g8ed1b