Skip to content

[flang] Implement MSVC predefined macros for Windows #67675

@pbo-linaro

Description

@pbo-linaro

Linaro has been working on flang support, for Windows on Arm. It is included in official release for this platform.
The version included targets MSVC ABI, and not GNU one (available with msys2).

We have been trying to build OpenBLAS and ran into issues with CMake support.
Currently, we are working with CMake community to support flang (MSVC), see this pull request.

As part of the feedback from CMake maintainer, it is currently difficult to identify which ABI and architecture flang is targeting. One solution, as suggested here, would be to implement a set of MSVC predefined macros, like clang already does.
At least having _MSC_VER and _M_{X64,ARM64,IX86}, would be a good start. It would allow CMake, or any other tool, to identify easily flang configuration, without having to parse any output result.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions