diff options
author | Erich Eckner <git@eckner.net> | 2019-05-13 10:39:33 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-05-15 11:04:50 +0200 |
commit | cb317944e36b6fa1b68abe80fa1e54270f3a0840 (patch) | |
tree | 3fc37905752f3f46a300406474d30e34fd2cddd4 /src/pacman/conf.c | |
parent | 7007d3c5739df17741049dea9238bf5ddd77942b (diff) | |
download | pacman-cb317944e36b6fa1b68abe80fa1e54270f3a0840.tar.xz |
change "i686" to "pentium4" if sse2 is available
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r-- | src/pacman/conf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 2d8518c4..2e7fac88 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -308,6 +308,11 @@ int config_set_arch(const char *arch) struct utsname un; uname(&un); config->arch = strdup(un.machine); + if(strcmp(config->arch, "i686") == 0) { + __builtin_cpu_init(); + if (__builtin_cpu_supports("sse2")) + config->arch = strdup("pentium4"); + } } else { config->arch = strdup(arch); } |