]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
arch/x86: Add compiler flags for auto host CPU
authorAndrei Tatar <andrei.ttr@gmail.com>
Fri, 21 Apr 2023 14:42:48 +0000 (16:42 +0200)
committerUnikraft <monkey@unikraft.io>
Wed, 3 May 2023 23:05:46 +0000 (23:05 +0000)
commit51860332a6caef0bd22ae5aa2da9a179df6ad0b2
tree4aef1b361f85b4e5b6fc02c4af36724235196fca
parentd97b44883dc5012e8a2f9b7c23ba69f5dfb40aeb
arch/x86: Add compiler flags for auto host CPU

Previously the `CONFIG_MARCH_X86_64_NATIVE` variable did not add
`-march=native` to CFLAGS, the compiler then defaulting to generic
x86_64. This implements the expected functionality.

Signed-off-by: Andrei Tatar <andrei.ttr@gmail.com>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Approved-by: Simon Kuenzer <simon@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #861
arch/x86/x86_64/Makefile.uk