Jim Cownie | 4cc4bb4 | 2014-10-07 16:25:50 +0000 | [diff] [blame] | 1 | # |
| 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 Cownie | 3b81ce6 | 2014-08-05 09:32:28 +0000 | [diff] [blame] | 12 | # This file holds GNU (gcc/g++) specific compiler dependent flags |
| 13 | # The flag types are: |
| 14 | # 1) Assembly flags |
| 15 | |
| 16 | ######################################################### |
| 17 | # Assembly flags |
| 18 | function(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) |
| 26 | endfunction() |
| 27 | |