Skip to content

Prefer extracting C++ standard version from argv at startup over runtime evaluation #348

Description

@anutosh491

Currently, the C++ standard version is determined by evaluating a small C++ snippet dynamically at runtime via Cpp::Evaluate, using a function like get_stdopt():

int __get_cxx_version () {
#if __cplusplus > 202302L
    return 26;
...
#endif
}
__get_cxx_version()

While determines the version correctly, this consumes the first incremental_module and I think is also costlier especially for wasm kernels (where the user has to wait for this to execute before running a cell)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs triageUsed in auto labelling of new issuesenhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions