Skip to content

Debug flags passed as extra args are parsed incorrectly #237

Open
@aaronj0

Description

@aaronj0

Enabling debugging output using export CPPINTEROP_EXTRA_INTERPRETER_ARGS="-mllvm -debug-only=jitcall"
causes the compiler instance creation to fail with:

>>> import cppyy
error: error reading 'new'
1 error generated.
python: llvm-project/clang/include/clang/Frontend/CompilerInstance.h:506: 
clang::Sema& clang::CompilerInstance::getSema() const: Assertion 
`TheSema && "Compiler instance has no Sema object!"' failed.

This is specific to when running cppyy, while running it directly works :

CPPINTEROP_EXTRA_INTERPRETER_ARGS="-mllvm -debug-only=jitcall" 
CppInterOp/build/unittests/CppInterOp/CppInterOpTests --gtest_filter=FunctionReflectionTest.JitCallAdvanced

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions