Skip to content

luajit adds source to kwargs breaking linking with Rust #1833

Open
@bobbens

Description

The LuaJIT wrap adds the luajit_h target as a source, thus adding the file luajit.h when specifying luajit as a dependency. This is usually not a problem for C/C++, but when linking to Rust, this will cause the compilation to fail with "ERROR: Rust target FOO contains a non-rust source file.". The offending code is:

luajit_dep_kwargs = {
  'include_directories': include_directories('.'),
  'sources'            : luajit_h,
  'variables'          : {
    'INSTALL_CMOD'     : install_cmod,
    'INSTALL_LMOD'     : install_lmod,
  },
}

My code only hits the issue with the fallback, it works fine with the system library.

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