diff options
| author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-03-05 17:50:48 +0000 |
|---|---|---|
| committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-03-05 17:50:48 +0000 |
| commit | 1b625ddc0d9bade0c6a0f798a9ea81c918e7ce3f (patch) | |
| tree | 0cf7fd261f4c0d05397b3c2f7e1424e912e58c95 | |
| parent | 1035f5721a58bb4df7284157ba4f9f75f2f44a60 (diff) | |
| download | bcm5719-llvm-1b625ddc0d9bade0c6a0f798a9ea81c918e7ce3f.tar.gz bcm5719-llvm-1b625ddc0d9bade0c6a0f798a9ea81c918e7ce3f.zip | |
moved Windows-specific flags under the WINDOWS guard in CMake
llvm-svn: 231384
| -rw-r--r-- | openmp/runtime/cmake/Intel/AsmFlags.cmake | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/openmp/runtime/cmake/Intel/AsmFlags.cmake b/openmp/runtime/cmake/Intel/AsmFlags.cmake index 2800af54d80..1ef39a7b432 100644 --- a/openmp/runtime/cmake/Intel/AsmFlags.cmake +++ b/openmp/runtime/cmake/Intel/AsmFlags.cmake @@ -18,18 +18,18 @@ 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("-safeseh") # Registers exception handlers for safe exception handling. - append_asm_flags("-coff") # Generates common object file format (COFF) type of object module. - # Generally required for Win32 assembly language development. - append_asm_flags("-D _M_IA32") - elseif(${INTEL64}) - append_asm_flags("-D _M_AMD64") - endif() if(${MIC}) append_asm_flags("-mmic") # Build Intel(R) MIC Architecture native code endif() if(${WINDOWS}) + if(${IA32}) + append_asm_flags("-safeseh") # Registers exception handlers for safe exception handling. + append_asm_flags("-coff") # Generates common object file format (COFF) type of object module. + # Generally required for Win32 assembly language development. + append_asm_flags("-D _M_IA32") + elseif(${INTEL64}) + append_asm_flags("-D _M_AMD64") + endif() # CMake prefers the /MD flags when compiling Windows sources, but libiomp5 needs to use /MT instead # So we replace these /MD instances with /MT within the CMAKE_*_FLAGS variables and put that out to the CACHE. # replace_md_with_mt() is in HelperFunctions.cmake |

