Skip to content

[Flang] Make SLES 15 build tests #87498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Conversation

jplehr
Copy link
Contributor

@jplehr jplehr commented Apr 3, 2024

SLES 15 comes with a GCC 7.5 as default, which does not support the C++17 <charconv> header. This results in build errors when trying to run check-flang.
This patch addresses that and uses the older std::stol for the string -> number conversion to allow the SLES 15 buildbot (https://lab.llvm.org/staging/#/builders/193) to turn green.

SLES 15 SP4 comes with a GCC 7.5 as default, which does not support the
C++17 <charconv> header. This results in build errors when trying to run
check-flang.
This patch addresses that and uses the older std::stol for the string ->
number conversion to allow the SLES 15 buildbot to succeed.
@jplehr jplehr added flang:build flang Flang issues not falling into any other category labels Apr 3, 2024
@clementval clementval requested review from rovka and klausler April 3, 2024 15:45
@jplehr
Copy link
Contributor Author

jplehr commented Apr 3, 2024

It was brought up internally to try to use llvm::StringRef for the conversions to integer. How do people feel about that route? Anything preferred?

@jplehr jplehr merged commit e69cab7 into llvm:main Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang:build flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants