Skip to content

Commit 8689500

Browse files
committed
Add -fintrinsic-modules-path= alias
1 parent 60ae9c9 commit 8689500

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7142,6 +7142,8 @@ def fintrinsic_modules_path : Separate<["-"], "fintrinsic-modules-path">, Group
71427142
HelpText<"Specify where to find the compiled intrinsic modules">,
71437143
DocBrief<[{This option specifies the location of pre-compiled intrinsic modules,
71447144
if they are not in the default location expected by the compiler.}]>;
7145+
def fintrinsic_modules_path_EQ : Joined<["-"], "fintrinsic-modules-path=">,
7146+
Group<f_Group>, Alias<fintrinsic_modules_path>;
71457147

71467148
defm backslash : OptInFC1FFlag<"backslash", "Specify that backslash in string introduces an escape character">;
71477149
defm xor_operator : OptInFC1FFlag<"xor-operator", "Enable .XOR. as a synonym of .NEQV.">;

flang/test/Driver/intrinsic-module-path.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
!-----------------------------------------
99
! RUN: %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s --allow-empty --check-prefix=WITHOUT
1010
! RUN: not %flang_fc1 -fsyntax-only -fintrinsic-modules-path %S/Inputs/ %s 2>&1 | FileCheck %s --check-prefix=GIVEN
11+
! RUN: not %flang_fc1 -fsyntax-only -fintrinsic-modules-path=%S/Inputs/ %s 2>&1 | FileCheck %s --check-prefix=GIVEN
1112

1213
! WITHOUT-NOT: 'ieee_arithmetic.mod' was not found
1314
! WITHOUT-NOT: 'iso_fortran_env.mod' was not found

0 commit comments

Comments
 (0)