Skip to content

Couple of issues in Chapter 8 for compiling with LLVM 17.0 #25

@Fare9

Description

@Fare9

I have found a couple of issues that can be easily fixed for allow compilation in last version of LLVM, after those changes the examples compile perfectly and run without problems.

Adding the Pass to the LLVM source code tree, the next line must be added to the file llvm/lib/Passes/CMakeLists.txt:

    CountIR
)

The line must be included as the last on the CMakeLists.txt of LINK_COMPONENTS.

Also in the part of the section of Adding an optimization pipeline to your compiler, in the CMakeLists.txt of the Driver, we must include a DEPENDS:

add_tinylang_tool(tinylang
    Driver.cpp

    DEPENDS
    SUPPORT_PLUGINS
)

For the moment I've spotted, and fixed those issues for the last version of LLVM.

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