Skip to content

Commit

Permalink
Merge pull request #11709 from KratosMultiphysics/core/fix-interl-com…
Browse files Browse the repository at this point in the history
…piler-print

[Core] add intel compiler to message
  • Loading branch information
philbucher authored Oct 23, 2023
2 parents 0f4ee1e + a783165 commit cea1d71
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kratos/sources/kratos_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,18 @@ KRATOS_ARCH_TYPE
#elif defined(__APPLE__) && defined(__MACH__)
#define KRATOS_OS_NAME "Mac OS"
#elif defined(_WIN32) || defined(_WIN64)
#define KRATOS_OS_NAME "Windows"
#define KRATOS_OS_NAME "Windows"
#else
#define KRATOS_OS_NAME "Unknown OS"
#endif

// Define compiler label
#if defined(__clang__)
#if defined(__INTEL_COMPILER) || defined(__INTEL_LLVM_COMPILER)
// the intel compiler internally uses gcc or clang
// therefore must check it first, otherwise it detects wrong compiler
#define KRATOS_COMPILER_LABEL "Intel-" \
KRATOS_TO_STRING(__VERSION__)
#elif defined(__clang__)
#define KRATOS_COMPILER_LABEL "Clang-" \
KRATOS_TO_STRING(__clang_major__) \
"." \
Expand Down

0 comments on commit cea1d71

Please sign in to comment.