forked from OSchip/llvm-project
28 lines
1023 B
CMake
28 lines
1023 B
CMake
#
|
|
#//===----------------------------------------------------------------------===//
|
|
#//
|
|
#// The LLVM Compiler Infrastructure
|
|
#//
|
|
#// This file is dual licensed under the MIT and the University of Illinois Open
|
|
#// Source Licenses. See LICENSE.txt for details.
|
|
#//
|
|
#//===----------------------------------------------------------------------===//
|
|
#
|
|
|
|
# This file holds Clang (clang/clang++) specific compiler dependent flags
|
|
# The flag types are:
|
|
# 1) Assembly flags
|
|
|
|
#########################################################
|
|
# Assembly flags
|
|
function(append_assembler_specific_asm_flags input_asm_flags)
|
|
set(local_asm_flags)
|
|
append_asm_flags("-x assembler-with-cpp") # Assembly file that needs to be preprocessed
|
|
if(${IA32})
|
|
append_asm_flags("-m32") # Generate 32 bit IA-32 architecture code
|
|
append_asm_flags("-msse2") # Allow use of Streaming SIMD Instructions
|
|
endif()
|
|
set(${input_asm_flags} ${${input_asm_flags}} "${local_asm_flags}" PARENT_SCOPE)
|
|
endfunction()
|
|
|