diff options
Diffstat (limited to 'openmp/runtime/cmake/config-ix.cmake')
| -rw-r--r-- | openmp/runtime/cmake/config-ix.cmake | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/openmp/runtime/cmake/config-ix.cmake b/openmp/runtime/cmake/config-ix.cmake index 6a78a7aebc5..b6e4e4ced51 100644 --- a/openmp/runtime/cmake/config-ix.cmake +++ b/openmp/runtime/cmake/config-ix.cmake @@ -144,8 +144,8 @@ endif() # Find perl executable # Perl is used to create omp.h (and other headers) along with kmp_i18n_id.inc and kmp_i18n_default.inc find_package(Perl REQUIRED) -# The perl scripts take the --os= flag which expects a certain format for operating systems. Until the -# perl scripts are removed, the most portable way to handle this is to have all operating systems that +# The perl scripts take the --os=/--arch= flags which expect a certain format for operating systems and arch's. +# Until the perl scripts are removed, the most portable way to handle this is to have all operating systems that # are neither Windows nor Mac (Most Unix flavors) be considered lin to the perl scripts. This is rooted # in that all the Perl scripts check the operating system and will fail if it isn't "valid". This # temporary solution lets us avoid trying to enumerate all the possible OS values inside the Perl modules. @@ -156,6 +156,15 @@ elseif(APPLE) else() set(LIBOMP_PERL_SCRIPT_OS lin) endif() +if(IA32) + set(LIBOMP_PERL_SCRIPT_ARCH 32) +elseif(MIC) + set(LIBOMP_PERL_SCRIPT_ARCH mic) +elseif(INTEL64) + set(LIBOMP_PERL_SCRIPT_ARCH 32e) +else() + set(LIBOMP_PERL_SCRIPT_ARCH ${LIBOMP_ARCH}) +endif() # Checking features # Check if version symbol assembler directives are supported |

