x86/build: Move '-mindirect-branch-cs-prefix' out of GCC-only block
authorNathan Chancellor <nathan@kernel.org>
Fri, 20 Jan 2023 16:58:27 +0000 (09:58 -0700)
committerIngo Molnar <mingo@kernel.org>
Sun, 22 Jan 2023 10:36:45 +0000 (11:36 +0100)
commit27b5de622ea3fe0ad5a31a0ebd9f7a0a276932d1
tree2b565ebd1f6d413ddaa5754dff9fce7e92c10b88
parentfe0ba8c23f9a35b0307eb662f16dd3a75fcdae41
x86/build: Move '-mindirect-branch-cs-prefix' out of GCC-only block

LLVM 16 will have support for this flag so move it out of the GCC-only
block to allow LLVM builds to take advantage of it.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://github.com/ClangBuiltLinux/linux/issues/1665
Link: https://github.com/llvm/llvm-project/commit/6f867f9102838ebe314c1f3661fdf95700386e5a
Link: https://lore.kernel.org/r/20230120165826.2469302-1-nathan@kernel.org
arch/x86/Makefile