[flang] Add -mp option for pgf90 in the presence of -fopenmp

Original-commit: flang-compiler/f18@a9d7287420
Reviewed-on: https://github.com/flang-compiler/f18/pull/450
This commit is contained in:
Jinxin Yang 2019-05-08 08:43:20 -07:00
parent f11652a1e6
commit 80ccd20f3b
1 changed files with 4 additions and 0 deletions

View File

@ -513,6 +513,10 @@ int main(int argc, char *const argv[]) {
Fortran::parser::LanguageFeature::BackslashEscapes)) {
driver.pgf90Args.push_back("-Mbackslash");
}
if (options.features.IsEnabled(
Fortran::parser::LanguageFeature::OpenMP)) {
driver.pgf90Args.push_back("-mp");
}
Fortran::semantics::SemanticsContext semanticsContext{
defaultKinds, options.features};