summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/cmake/Intel/AsmFlags.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/cmake/Intel/AsmFlags.cmake')
-rw-r--r--openmp/runtime/cmake/Intel/AsmFlags.cmake42
1 files changed, 0 insertions, 42 deletions
diff --git a/openmp/runtime/cmake/Intel/AsmFlags.cmake b/openmp/runtime/cmake/Intel/AsmFlags.cmake
deleted file mode 100644
index a11e2dd43d8..00000000000
--- a/openmp/runtime/cmake/Intel/AsmFlags.cmake
+++ /dev/null
@@ -1,42 +0,0 @@
-#
-#//===----------------------------------------------------------------------===//
-#//
-#// 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 Intel(R) C Compiler / Intel(R) C++ Compiler / Intel(R) Fortran Compiler (icc/icpc/icl.exe/ifort) 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(${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 libomp 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
- replace_md_with_mt(CMAKE_ASM_MASM_FLAGS)
- replace_md_with_mt(CMAKE_ASM_MASM_FLAGS_RELEASE)
- replace_md_with_mt(CMAKE_ASM_MASM_FLAGS_RELWITHDEBINFO)
- replace_md_with_mt(CMAKE_ASM_MASM_FLAGS_DEBUG)
- endif()
- set(${input_asm_flags} ${${input_asm_flags}} "${local_asm_flags}" PARENT_SCOPE)
-endfunction()
OpenPOWER on IntegriCloud