diff options
author | Thomas Voss <thomas.voss@humanwave.nl> | 2024-08-26 21:26:47 +0200 |
---|---|---|
committer | Thomas Voss <thomas.voss@humanwave.nl> | 2024-08-26 21:26:47 +0200 |
commit | 59292dded6717cb59a1b7d76a6a38058ef0086e4 (patch) | |
tree | a954618a7ff9a69ec61b8d97b8603aa2fbb4872e /make.c | |
parent | f2e7f82092666c2db43eabf2b03e07e5e66368b8 (diff) |
Add a sha1 for arm64 with crypto extensions
Diffstat (limited to 'make.c')
-rw-r--r-- | make.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -50,7 +50,7 @@ static void usage(void) { fprintf(stderr, - "Usage: %s [-p generic|x64] [-fSr]\n" + "Usage: %s [-p generic|arm64|x64] [-fSr]\n" " %s clean\n", argv0, argv0); exit(EXIT_FAILURE); @@ -90,7 +90,10 @@ main(int argc, char **argv) assert(oflag != NULL); break; case 'p': - if (strcmp(optarg, "generic") == 0 || strcmp(optarg, "x64") == 0) { + if (strcmp(optarg, "generic") == 0 + || strcmp(optarg, "arm64") == 0 + || strcmp(optarg, "x64") == 0) + { pflag = strdup(optarg); assert(pflag != NULL); } else { @@ -164,6 +167,8 @@ cc(void *arg) if (strstr(arg, "-x64.c") != NULL) strspushl(&cmd, "-msha", "-mssse3"); } + if (strstr(arg, "-arm64.c") != NULL) + strspushl(&cmd, "-march=native+crypto"); if (!Sflag) strspushl(&cmd, "-fsanitize=address,undefined"); strspushl(&cmd, "-o", dst, "-c", src); |