-
-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Current Behavior
If the crate uses proc-macro, it becomes impossible to do cross-compile for x86-windows on windows.
Expected Behavior
It should success.
Steps To Reproduce
- Use some proc-macro crate (Minimum reproduction: https://github.com/sevenc-nanashi/corrosion-x86-min-repro , this uses const_random crate)
cmake -S . -B "build" -A Win32 && cmake --build build
Environment
- OS: Windows 10
- CMake: cmake version 3.31.3
- CMake Generator: Visual Studio 17 2022 / Win32
CMake configure log with Debug log-level
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
-- Using Corrosion 0.99.99 with CMake 3.31.3 and the `Visual Studio 17 2022` Generator
-- Rust Toolchain: stable-x86_64-pc-windows-msvc
-- Rust toolchain stable-x86_64-pc-windows-msvc
-- Rust toolchain path C:\Users\katama\.rustup\toolchains\stable-x86_64-pc-windows-msvc
-- Rust Target: i686-pc-windows-msvc
-- Cargo target is an official target-triple
-- Installed targets: i686-pc-windows-msvc;x86_64-pc-windows-msvc
-- Parsed Target triple: arch: i686, vendor: pc, OS: windows, env: msvc
-- Parsed Target triple: arch: x86_64, vendor: pc, OS: windows, env: msvc
-- Found 1 targets in package rust-lib
-- TARGET rust_lib produces byproducts rust_lib.lib
-- Corrosion created the following CMake targets: rust_lib
-- Output directory property (target rust_lib): ARCHIVE_OUTPUT_DIRECTORY dir: output_directory-NOTFOUND
-- Setting IMPORTED_LOCATION_DEBUG for target rust_lib-static to `E:/corrosion-x86-min-repro/build/rust_lib.lib`.
-- Setting IMPORTED_LOCATION_RELEASE for target rust_lib-static to `E:/corrosion-x86-min-repro/build/rust_lib.lib`.
-- Setting IMPORTED_LOCATION_MINSIZEREL for target rust_lib-static to `E:/corrosion-x86-min-repro/build/rust_lib.lib`.
-- Setting IMPORTED_LOCATION_RELWITHDEBINFO for target rust_lib-static to `E:/corrosion-x86-min-repro/build/rust_lib.lib`.
-- Setting IMPORTED_LOCATION for target rust_lib-static to `E:/corrosion-x86-min-repro/build/rust_lib.lib`.
-- Adding command to copy byproducts `rust_lib.lib` to $<$<CONFIG:Debug>:E:/corrosion-x86-min-repro/build>$<$<CONFIG:Release>:E:/corrosion-x86-min-repro/build>$<$<CONFIG:MinSizeRel>:E:/corrosion-x86-min-repro/build>$<$<CONFIG:RelWithDebInfo>:E:/corrosion-x86-min-repro/build>/rust_lib.lib
-- Configuring done (0.6s)
-- Generating done (0.2s)
-- Build files have been written to: E:/corrosion-x86-min-repro/build
CMake Build step log
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working