fix(libsql-sqlite3-parser): cross-compilation for lemon generator#2256
Open
salim-b wants to merge 1 commit into
Open
fix(libsql-sqlite3-parser): cross-compilation for lemon generator#2256salim-b wants to merge 1 commit into
lemon generator#2256salim-b wants to merge 1 commit into
Conversation
Force the `cc` crate to ignore cross-compilation environment variables and use the host's native compiler and architecture settings.
lemon generatorlemon generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Force the
cccrate to ignore cross-compilation environment variables and use the host's native compiler and architecture settings.Fixes an issue where
libsql-sqlite3-parserfails to cross-compile on Windows (e.g., building foraarch64-pc-windows-msvcon anx86_64host).During the build process, the
build.rsscript compileslemon.cinto a helper executable (rlemon). Previously, the build configuration was not strictly isolating the host environment. This resulted in the MSVC cross-compiler attempting to build thelemonbinary for the target architecture (arm64), causing anERROR_EXE_MACHINE_TYPE_MISMATCH(Error 216) when the build script attempted to execute the resulting binary on thex64host machine.