Skip to content

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 klausler and rovka 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