Skip to content

Regarding the building resource in Package.swift #30

Closed
@FlickerSoul

Description

@FlickerSoul

It looks like the module map file is usually referenced as <llvm_root>/llvm/include/module.modulemap and the line 17 in the Package.swift doesn't seem to locate the module map correctly. That is, the llvmModuleMapPath is resolved as <llvm_root>/llvm/include/llvm/module.modulemap and doesn't match where the module map usually is.

    guard let llvmHeaderPath = env["SWIFT_LLVM_BINDINGS_PATH_TO_LLVM_HEADERS"] else {
        print("please pass an environment variable to swift-package: " +
              "SWIFT_LLVM_BINDINGS_PATH_TO_LLVM_HEADERS " +
              "(e.g. swift/llvm-project/llvm/include)")
        return nil
    }
    let llvmModuleMapPath = "\(llvmHeaderPath)/llvm/module.modulemap". // line 17

I am quite new to LLVM and am very likely to be wrong. If without llvm is intended, I can open a pr to fix it. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions