1# Copyright (c) 2019 Intel Corp. 2# SPDX-License-Identifier: Apache-2.0 3 4zephyr_cc_option(-m64) 5zephyr_cc_option(-mno-red-zone) 6 7set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_ARCH "i386:x86-64") 8set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT "elf64-x86-64") 9get_property(OUTPUT_ARCH GLOBAL PROPERTY PROPERTY_OUTPUT_ARCH) 10get_property(OUTPUT_FORMAT GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT) 11 12if(CONFIG_X86_SSE) 13 # x86-64 by default has SSE and SSE2 14 # so no need to add compiler flags for them. 15 16 if(CONFIG_X86_SSE3) 17 zephyr_cc_option(-msse3) 18 else() 19 zephyr_cc_option(-mno-sse3) 20 endif() 21 22 if(CONFIG_X86_SSSE3) 23 zephyr_cc_option(-mssse3) 24 else() 25 zephyr_cc_option(-mno-ssse3) 26 endif() 27 28 if(CONFIG_X86_SSE41) 29 zephyr_cc_option(-msse4.1) 30 else() 31 zephyr_cc_option(-mno-sse4.1) 32 endif() 33 34 if(CONFIG_X86_SSE42) 35 zephyr_cc_option(-msse4.2) 36 else() 37 zephyr_cc_option(-mno-sse4.2) 38 endif() 39 40 if(CONFIG_X86_SSE4A) 41 zephyr_cc_option(-msse4a) 42 else() 43 zephyr_cc_option(-mno-sse4a) 44 endif() 45 46endif() 47 48add_subdirectory(core) 49