Skip to content

Conversation

@jasonish
Copy link
Member

  • build.rs: pass through CFLAGS

  • build.rs: only build the library not the tool
    The tool is not required.

  • version: 0.1.0-alpha.7

jasonish added 4 commits May 20, 2025 09:59
In the Suricata use case, we want to set CFLAGS, but not necessarily
for all Rust crates. So give suricata-lua-sys its own CFLAGS
environment variable which will be used when build this crate.
@jasonish jasonish requested a review from Copilot May 22, 2025 15:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the build script to forward external compiler flags into the shared library build, skips building the optional tool, and bumps the crate version.

  • Forward CFLAGS and SURICATA_LUA_SYS_CFLAGS into MYCFLAGS in build.rs
  • Limit the build to the library target only
  • Bump package version

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
build.rs Pass through CFLAGS, add SURICATA_LUA_SYS_CFLAGS, constrain build to library, update rerun directives
Cargo.toml Version changed from 0.1.0-alpha.6 to 0.1.0-alpha.8

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jasonish
Copy link
Member Author

Merged.

@jasonish jasonish closed this May 22, 2025
@jasonish jasonish deleted the cflags-passthrough/v2 branch May 22, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant