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

Compiler warnings present when integrated with Swift Package Manager #3892

Open
anlaital-oura opened this issue Jan 31, 2024 · 0 comments
Open
Labels

Comments

@anlaital-oura
Copy link

Describe the bug

There are bunch of warnings from zstd.h in the following form when compiling:

Definition of configuration mac 'ZSTDLIB_VISIBLE' has no effect on the import of 'libzstd'; pass '-DZSTDLIB_VISIBLE=...' on the command line to configure the module

It is possible to have these preprocessor definitions in cSettings in the Package.swift integration site, but that should not be necessary in my opinion and the project should build without warnings.

To Reproduce

  1. Use library with Swift Package Manager
  2. Compile with swift build

Expected behavior

No warnings should be given.

Screenshots and charts

image

Desktop (please complete the following information):

  • OS: macOS
  • Version 14.2.1
  • Compiler swiftc
  • Flags n/a
  • Other relevant hardware specs n/a
  • Build system SPM
@Cyan4973 Cyan4973 added the build label Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants