blob: c422349e5e901239b4dfc707608fd686529f78e2 [file] [log] [blame]
#
#//===----------------------------------------------------------------------===//
#//
#// 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 GNU (gcc/g++) 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()