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

chore(config) better support NGX_WASM_CARGO=0 #386

Closed
wants to merge 1 commit into from

Conversation

hishamhm
Copy link
Collaborator

The existing NGX_WASM_CARGO=0 variable already allows skipping the Cargo step for building ngx-wasm-rs during ./configure, but it didn't set the defines needed for each VM configuration.

This commit adds the defines when NGX_WASM_CARGO=0 is used, allowing the user to build ngx-wasm-rs separately if wanted, passing its header and library locations via NGX_BUILD_CC_OPTS and NGX_BUILD_LD_OPTS, or via --cc-opts and --ld-opts flags in the nginx configure script.

Includes tests and documentation.

(Nevermind the branch name, the approach taken changed halfway through 😆 )

The existing NGX_WASM_CARGO=0 variable already allows skipping
the Cargo step for building ngx-wasm-rs during `./configure`,
but it didn't set the defines needed for each VM configuration.

This commit adds the defines when NGX_WASM_CARGO=0 is used,
allowing the user to build ngx-wasm-rs separately if wanted,
passing its header and library locations via NGX_BUILD_CC_OPTS
and NGX_BUILD_LD_OPTS, or via `--cc-opts` and `--ld-opts` flags
in the nginx `configure` script.

Includes tests and documentation.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 5891642789

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 91.117%

Totals Coverage Status
Change from base Build 5886340997: 0.0%
Covered Lines: 7580
Relevant Lines: 8319

💛 - Coveralls

@thibaultcha thibaultcha changed the title chore(config): better support NGX_WASM_CARGO=0 chore(config) better support NGX_WASM_CARGO=0 Aug 17, 2023
@thibaultcha thibaultcha added the pr/merge-in-progress PR: Merge in progress (do not push) label Aug 17, 2023
@thibaultcha
Copy link
Member

Merged but I moved the documentation to INSTALL.md since it is end-user facing!

@thibaultcha thibaultcha deleted the chore/ngx_wasm_rs_variables branch August 17, 2023 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/merge-in-progress PR: Merge in progress (do not push)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants