Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Fare9 opened this issue Apr 4, 2023 · 0 comments
Open

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

Fare9 opened this issue Apr 4, 2023 · 0 comments

Comments

@Fare9
Copy link

Fare9 commented Apr 4, 2023

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.

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

No branches or pull requests

1 participant