You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Corrosion already set CC_ environment for cargo build, but some crate like rusqlite-rs with feature bundled requires AR_<triple> or TARGET_AR to cross-compile.
Expected Behavior
Corrosion should set AR_<triple> or TARGET_AR with cmake variable CMAKE_AR.
-- ANDROID_PLATFORM not set. Defaulting to minimum supported version
19.
-- The C compiler identification is Clang 14.0.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/kr328/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Using Corrosion 0.4.4 with CMake 3.27.7 and the `Unix Makefiles` Generator
-- Rust Toolchain: stable-x86_64-pc-windows-msvc
-- Rust toolchain stable-x86_64-pc-windows-msvc
-- Rust toolchain path C:\Users\kr328\scoop\persist\rustup\.rustup\toolchains\stable-x86_64-pc-windows-msvc
-- Rust Target: armv7-linux-androideabi
-- Parsed Target triple: arch: armv7, vendor: , OS: linux, env: androideabi
-- Parsed Target triple: arch: x86_64, vendor: pc, OS: windows, env: msvc
-- Determining required link libraries for target armv7-linux-androideabi
-- Required static libs for target armv7-linux-androideabi: dl;log;unwind;dl;m;c
-- Determining required link libraries for target x86_64-pc-windows-msvc
-- Required static libs for host target x86_64-pc-windows-msvc: kernel32;advapi32;bcrypt;kernel32;ntdll;userenv;ws2_32;kernel32;ws2_32;kernel32;$<$<CONFIG:Debug>:msvcrtd>
-- Found Rust: C:/Users/kr328/scoop/persist/rustup/.rustup/toolchains/stable-x86_64-pc-windows-msvc/bin/rustc.exe (found version "1.73.0")
-- Cargo target armv7-linux-androideabi is an official target-triple
-- Installed targets: aarch64-linux-android;armv7-linux-androideabi;i686-linux-android;x86_64-linux-android;x86_64-pc-windows-msvc
-- Using Corrosion as a subdirectory
-- Found 1 targets in package rs
-- TARGET rs produces byproducts rs;
-- Corrosion created the following CMake targets: rs
-- Output directory property (target rs): RUNTIME_OUTPUT_DIRECTORY dir: output_directory-NOTFOUND
-- Setting IMPORTED_LOCATION for target rs to `D:/Workspace/untitled/build/rs`.
-- Adding command to copy byproducts `rs` to D:/Workspace/untitled/build/rs
-- Configuring done (7.2s)
-- Generating done (0.0s)
-- Build files have been written to: D:/Workspace/untitled/build
- Set the `AR_<triple>` variable for cc-rs.
- Simplify condition for CC_<triple> and CXX_<triple>.
The target is always defined in corrosion,
so there is no need to check if it set.
Closes#454
- Set the `AR_<triple>` variable for cc-rs.
- Simplify condition for CC_<triple> and CXX_<triple>.
The target is always defined in corrosion,
so there is no need to check if it set.
Closes#454
- Set the `AR_<triple>` variable for cc-rs.
- Simplify condition for CC_<triple> and CXX_<triple>.
The target is always defined in corrosion,
so there is no need to check if it set.
Closes#454
jschwe
added a commit
to jschwe/corrosion
that referenced
this issue
May 10, 2024
- Set the `AR_<triple>` variable for cc-rs.
- Simplify condition for CC_<triple> and CXX_<triple>.
The target is always defined in corrosion,
so there is no need to check if it set.
Closescorrosion-rs#454
(cherry picked from commit b72c8ce)
Current Behavior
Corrosion already set CC_ environment for cargo build, but some crate like
rusqlite-rs
with featurebundled
requiresAR_<triple>
orTARGET_AR
to cross-compile.Expected Behavior
Corrosion should set
AR_<triple>
orTARGET_AR
with cmake variableCMAKE_AR
.Steps To Reproduce
reproduce-project.zip
cmake -G "Unix Makefiles" -DCMAKE_MAKE_PROGRAM="\path\to\ndk\prebuilt\windows-x86_64\bin\make.exe" -DCMAKE_TOOLCHAIN_FILE="\path\to\ndk\build\cmake\android.toolchain.cmake" \path\to\reproduce-project
Environment
CMake configure log with Debug log-level
CMake Build step log
The text was updated successfully, but these errors were encountered: