The C runner utils API was still not vanilla enough for certain use
cases on embedded ARM SDKs, this enables such cases.
Adding people more widely for historical Windows related build issues.
Differential D76031
[mlir][CRunnerUtils] Enable compilation with C++11 toolchain on microcontroller platforms. nicolasvasilache on Mar 11 2020, 3:05 PM. Authored by
Details The C runner utils API was still not vanilla enough for certain use Adding people more widely for historical Windows related build issues.
Diff Detail
Event TimelineComment Actions LGTM if others see no Windows issue
Comment Actions What kind of constraints are we placing on the runner utils? The rest of the codebase is C++14, and it is quite likely that C++14 features might sneak in here later. Comment Actions CRunnerUtils: If you have suggestions on how to test this concretely, I'd be happy to add it. RunnerUtils in general: no constraints, it includes CRunnerUtils. Comment Actions I don't have MSVC at this minute but this seems OK. Is it that the older compiler doesn't understand constexpr functions? I guess there's no fundamental reason the accessor operators need to be constexpr.
Comment Actions Force-build it in c++11 mode even when the rest of the project is built with c++14 or above? Comment Actions The mlir-check target passes with MS C++ 19.24.28319 (except for the known failure). If there is another test that would be helpful on Windows let me know.
Comment Actions @stella.stamenova thank you and congrats ! :) @NathanielMcVicar thanks for checking, I made a minor CMake addition, I do not expect it to break the Win build but please double check for me? Thanks! |
perhaps use () on the part after : too for readability
(assuming this does not violate some llvm brevity rule I don't know yet :-)