Jim Cownie | 3b81ce6 | 2014-08-05 09:32:28 +0000 | [diff] [blame] | 1 | # This file holds GNU (gcc/g++) specific compiler dependent flags |
| 2 | # The flag types are: |
| 3 | # 1) Assembly flags |
| 4 | |
| 5 | ######################################################### |
| 6 | # Assembly flags |
| 7 | function(append_assembler_specific_asm_flags input_asm_flags) |
| 8 | set(local_asm_flags) |
| 9 | append_asm_flags("-x assembler-with-cpp") # Assembly file that needs to be preprocessed |
| 10 | if(${IA32}) |
| 11 | append_asm_flags("-m32") # Generate 32 bit IA-32 architecture code |
| 12 | append_asm_flags("-msse2") # Allow use of Streaming SIMD Instructions |
| 13 | endif() |
| 14 | set(${input_asm_flags} ${${input_asm_flags}} "${local_asm_flags}" PARENT_SCOPE) |
| 15 | endfunction() |
| 16 | |