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
Running beforeBuildCommand `npm run build`
> vite-project@0.0.0 build
> tsc && vite build
vite v4.4.9 building for production...
transforming...
✓ 34 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html 0.46 kB │ gzip: 0.30 kB
dist/assets/react-35ef61ed.svg 4.13 kB │ gzip: 2.14 kB
dist/assets/index-d526a0c5.css 1.42 kB │ gzip: 0.74 kB
dist/assets/index-889552fa.js 143.40 kB │ gzip: 46.11 kB
✓ built in 415ms
Compiling app v0.1.0 (/Users/pavel.smirnov/Source/temp/tauri-test/src-tauri)
The following warnings were emitted during compilation:
warning: clang-16: warning: unknown argument ignored in clang-cl: '-xc' [-Wunknown-argument]
warning: clang-16: warning: '/Users/pavel.smirnov/Source/temp/tauri-test/src-tauri/target/x86_64-pc-windows-msvc/release/build/app-1d3f597e4ba51def/out/resource.rc' treated as the '/U' option [-Wslash-u-filename]
warning: clang-16: note: use '--' to treat subsequent arguments as filenames
warning: clang-16: error: no input files
error: failed to run custom build command for `app v0.1.0 (/Users/pavel.smirnov/Source/temp/tauri-test/src-tauri)`
Caused by:
process didn't exit successfully: `/Users/pavel.smirnov/Source/temp/tauri-test/src-tauri/target/release/build/app-c964aedc32e1a8f5/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=TAURI_CONFIG
cargo:rerun-if-changed=tauri.conf.json
cargo:rustc-cfg=desktop
cargo:rustc-env=TAURI_ANDROID_PACKAGE_PREFIX=test
cargo:rustc-env=TAURI_TARGET_TRIPLE=x86_64-pc-windows-msvc
package.metadata does not exist
running: "clang-cl" "-nologo" "-MD" "-O2" "-Brepro" "-m64" "--target=x86_64-pc-windows-msvc" "-Wno-unused-command-line-argument" "-fuse-ld=lld-link" "/imsvc/Users/pavel.smirnov/Library/Caches/cargo-xwin/xwin/crt/include" "/imsvc/Users/pavel.smirnov/Library/Caches/cargo-xwin/xwin/sdk/include/ucrt" "/imsvc/Users/pavel.smirnov/Library/Caches/cargo-xwin/xwin/sdk/include/um" "/imsvc/Users/pavel.smirnov/Library/Caches/cargo-xwin/xwin/sdk/include/shared" "-I" "/Users/pavel.smirnov/Source/temp/tauri-test/src-tauri/target/x86_64-pc-windows-msvc/release/build/app-1d3f597e4ba51def/out" "-xc" "-DRC_INVOKED" "-E" "/Users/pavel.smirnov/Source/temp/tauri-test/src-tauri/target/x86_64-pc-windows-msvc/release/build/app-1d3f597e4ba51def/out/resource.rc"
cargo:warning=clang-16: warning: unknown argument ignored in clang-cl: '-xc' [-Wunknown-argument]
cargo:warning=clang-16: warning: '/Users/pavel.smirnov/Source/temp/tauri-test/src-tauri/target/x86_64-pc-windows-msvc/release/build/app-1d3f597e4ba51def/out/resource.rc' treated as the '/U' option [-Wslash-u-filename]
cargo:warning=clang-16: note: use '--' to treat subsequent arguments as filenames
cargo:warning=clang-16: error: no input files
exit status: 1
--- stderr
error occurred: Command "clang-cl" "-nologo" "-MD" "-O2" "-Brepro" "-m64" "--target=x86_64-pc-windows-msvc" "-Wno-unused-command-line-argument" "-fuse-ld=lld-link" "/imsvc/Users/pavel.smirnov/Library/Caches/cargo-xwin/xwin/crt/include" "/imsvc/Users/pavel.smirnov/Library/Caches/cargo-xwin/xwin/sdk/include/ucrt" "/imsvc/Users/pavel.smirnov/Library/Caches/cargo-xwin/xwin/sdk/include/um" "/imsvc/Users/pavel.smirnov/Library/Caches/cargo-xwin/xwin/sdk/include/shared" "-I" "/Users/pavel.smirnov/Source/temp/tauri-test/src-tauri/target/x86_64-pc-windows-msvc/release/build/app-1d3f597e4ba51def/out" "-xc" "-DRC_INVOKED" "-E" "/Users/pavel.smirnov/Source/temp/tauri-test/src-tauri/target/x86_64-pc-windows-msvc/release/build/app-1d3f597e4ba51def/out/resource.rc" with args "clang-cl" did not execute successfully (status code exit status: 1).
Error failed to build app: failed to build app
Additional context
Funny, but it compiles if i create ln -s llvm-lib lib.exe and run cargo tauri build --target x86_64-pc-windows-msvc. With updater plugin it works when i run two commands in a row: without cargo-xwin and with. But anyway it's not correct behavior
The text was updated successfully, but these errors were encountered:
Can embed-resource (dependency of tauri_winres) cause this error or this line isn't related to it?
And also, cargo-xwin does something with cmake files to fix issues like this one (but someone calls clang-cl, not cmake file)
Describe the bug
I'm using xwin to cross-compile
When i run
cargo tauri build --target x86_64-pc-windows-msvc --runner cargo-xwin
it fails due to wrong clang argumentsReproduction
cargo tauri build --target x86_64-pc-windows-msvc --runner cargo-xwin
Expected behavior
No response
Platform and versions
Stack trace
Additional context
Funny, but it compiles if i create
ln -s llvm-lib lib.exe
and runcargo tauri build --target x86_64-pc-windows-msvc
. With updater plugin it works when i run two commands in a row: without cargo-xwin and with. But anyway it's not correct behaviorThe text was updated successfully, but these errors were encountered: