[flang] Expose -m64 option (#132409)
Exposes `-m64` option for Flang. These options can be used to build libraries or tools (e.g. OpenBlas).
This commit is contained in:
parent
a6e61ce239
commit
5b36835df0
@ -4689,7 +4689,7 @@ def mqdsp6_compat : Flag<["-"], "mqdsp6-compat">, Group<m_Group>,
|
|||||||
HelpText<"Enable hexagon-qdsp6 backward compatibility">,
|
HelpText<"Enable hexagon-qdsp6 backward compatibility">,
|
||||||
MarshallingInfoFlag<LangOpts<"HexagonQdsp6Compat">>;
|
MarshallingInfoFlag<LangOpts<"HexagonQdsp6Compat">>;
|
||||||
def m64 : Flag<["-"], "m64">, Group<m_Group>, Flags<[NoXarchOption]>,
|
def m64 : Flag<["-"], "m64">, Group<m_Group>, Flags<[NoXarchOption]>,
|
||||||
Visibility<[ClangOption, CLOption, DXCOption]>;
|
Visibility<[ClangOption, CLOption, DXCOption, FlangOption]>;
|
||||||
def maix64 : Flag<["-"], "maix64">, Group<m_Group>, Flags<[NoXarchOption]>;
|
def maix64 : Flag<["-"], "maix64">, Group<m_Group>, Flags<[NoXarchOption]>;
|
||||||
def mx32 : Flag<["-"], "mx32">, Group<m_Group>, Flags<[NoXarchOption]>,
|
def mx32 : Flag<["-"], "mx32">, Group<m_Group>, Flags<[NoXarchOption]>,
|
||||||
Visibility<[ClangOption, CLOption, DXCOption]>;
|
Visibility<[ClangOption, CLOption, DXCOption]>;
|
||||||
|
7
flang/test/Driver/m64-option.f90
Normal file
7
flang/test/Driver/m64-option.f90
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
! Check support of -m64.
|
||||||
|
! RUN: %flang -target i386-pc-win32 -m64 -### - %s 2>&1 | FileCheck -check-prefix=M64 %s
|
||||||
|
! RUN: %flang -target x86_64-linux-gnu -m64 -### - %s 2>&1 | FileCheck -check-prefix=M64 %s
|
||||||
|
! RUN: %flang -target x86_64-unknown-windows -m64 -### - %s 2>&1 | FileCheck -check-prefix=M64 %s
|
||||||
|
! RUN: %flang -target x86_64-unknown-macosx -m64 -### - %s 2>&1 | FileCheck -check-prefix=M64 %s
|
||||||
|
|
||||||
|
! M64: "-triple" "x86_64-{{.*}}"
|
Loading…
x
Reference in New Issue
Block a user