diff options
Diffstat (limited to 'openmp/runtime/src/kmp_settings.cpp')
| -rw-r--r-- | openmp/runtime/src/kmp_settings.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openmp/runtime/src/kmp_settings.cpp b/openmp/runtime/src/kmp_settings.cpp index 3f38bec00c2..114cd9c9bac 100644 --- a/openmp/runtime/src/kmp_settings.cpp +++ b/openmp/runtime/src/kmp_settings.cpp @@ -1250,11 +1250,11 @@ static void __kmp_stg_parse_target_offload(char const *name, char const *value, if (*next == '\0') return; scan = next; - if (__kmp_match_str("MANDATORY", scan, &next)) { + if (!__kmp_strcasecmp_with_sentinel("mandatory", scan, 0)) { __kmp_target_offload = tgt_mandatory; - } else if (__kmp_match_str("DISABLED", scan, &next)) { + } else if (!__kmp_strcasecmp_with_sentinel("disabled", scan, 0)) { __kmp_target_offload = tgt_disabled; - } else if (__kmp_match_str("DEFAULT", scan, &next)) { + } else if (!__kmp_strcasecmp_with_sentinel("default", scan, 0)) { __kmp_target_offload = tgt_default; } else { KMP_WARNING(SyntaxErrorUsing, name, "DEFAULT"); |

