blob: c422349e5e901239b4dfc707608fd686529f78e2 [file] [log] [blame]
Jim Cownie4cc4bb42014-10-07 16:25:50 +00001#
2#//===----------------------------------------------------------------------===//
3#//
4#// The LLVM Compiler Infrastructure
5#//
6#// This file is dual licensed under the MIT and the University of Illinois Open
7#// Source Licenses. See LICENSE.txt for details.
8#//
9#//===----------------------------------------------------------------------===//
10#
11
Jim Cownie3b81ce62014-08-05 09:32:28 +000012# This file holds GNU (gcc/g++) specific compiler dependent flags
13# The flag types are:
14# 1) Assembly flags
15
16#########################################################
17# Assembly flags
18function(append_assembler_specific_asm_flags input_asm_flags)
19 set(local_asm_flags)
20 append_asm_flags("-x assembler-with-cpp") # Assembly file that needs to be preprocessed
21 if(${IA32})
22 append_asm_flags("-m32") # Generate 32 bit IA-32 architecture code
23 append_asm_flags("-msse2") # Allow use of Streaming SIMD Instructions
24 endif()
25 set(${input_asm_flags} ${${input_asm_flags}} "${local_asm_flags}" PARENT_SCOPE)
26endfunction()
27