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

luajit adds source to kwargs breaking linking with Rust #1833

Open
bobbens opened this issue Dec 26, 2024 · 0 comments
Open

luajit adds source to kwargs breaking linking with Rust #1833

bobbens opened this issue Dec 26, 2024 · 0 comments

Comments

@bobbens
Copy link

bobbens commented Dec 26, 2024

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.

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

No branches or pull requests

1 participant