Skip to content

cppjit in pip is set to support C++ 17 by default #182

Open

Description

@srpgilles

When you just install cppjit with pip install cppjit, the standard used is the default one which comes with clang compiler, which is usually C++ 17.

To support higher versions of the C++ standard, one needs to define the CPPINTEROP_EXTRA_INTERPRETER_ARGS environment variable to specify which standard should be used:

export CPPINTEROP_EXTRA_INTERPRETER_ARGS="-std=c++23"

for instance.

This workaround works fine, but the drawback is that the environment variable needs to be present at runtime as well.

It would be better if the highest standard available to the LLVM version was set by default.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions