24bit-xjkp

Results 7 issues of 24bit-xjkp

**Describe the bug** I tried to cross compile benchmark to x86_64-w64-mingw32. When I set "-DBUILD_SHARED_LIBS=ON", no error generated. When I set "-DBUILD_SHARED_LIBS=OFF", the libbenchmark could be built. But when I...

### Xmake 版本 v2.8.6 ### 操作系统版本和架构 Windows 11 24H2 ### 描述问题 ## 源代码 ```cpp // a.cpp int main() {} // b.cpp int main() {} ``` ```lua target("test") add_files("a.cpp") add_tests("test", {files...

bug

### 你在什么场景下需要该功能? ```c++ // a.cpp int main() {} ``` ```lua -- xmake.lua target("test") add_files("a.cpp") set_symbols("debug") set_strip("all") ``` 我使用命令`xmake f --toolchain=gcc -p windows -a x64 -m debug"来配置xmake,然后执行`xmake -vD`,它的构建流程如下: ```log [ 25%]:...

feature request

### Xmake 版本 v2.7.9+dev.8b9228762 ### 操作系统版本和架构 Windows11 21H2 ### 描述问题 在构建包时,xmake已经将工具链设置成了gcc ``` in xmake-repo: -> benchmark 1.8.0 [toolchains:"gcc", vs_runtime:"MT", shared:n] ``` 但编译的时候用的是msvc ``` -- Check for working CXX compiler: D:/Microsoft...

bug

### Xmake 版本 xmake v2.7.9+dev.d51436e32 ### 操作系统版本和架构 Windows 11 22H2 ### 描述问题 ``` c++ import ; ``` xmake时产生错误`error: find not found!` 原因是headerpaths探测出来的目录是"D:\Tools\gcc\include\c++\14.0.0" 但实际上gcc的包含路径有这么多 ``` D:\Tools\gcc\include\c++\14.0.0 D:\Tools\gcc\include\c++\14.0.0\x86_64-w64-mingw32 D:\Tools\gcc\include\c++\14.0.0\backward D:\Tools\gcc\lib\gcc\x86_64-w64-mingw32\14.0.0\include D:\Tools\gcc\include ```...

bug

Checklist - [x] This problem exists even with the setting `"C_Cpp.enhancedColorization": "Disabled"` ## The code with a problem is: ```cpp int main() { constexpr std::size_t highlight{}; const ::std::size_t highlight2{}; ::std::size_t...

### Xmake 版本 v2.9.3 ### 操作系统版本和架构 Windows 11 24H2 ### 描述问题 ```lua -- xmake.lua includes("@builtin/xpack") xpack("test") set_formats("srczip") add_sourcefiles("*.txt") set_version("1.0") xpack_end() ``` 而当前目录下有两个文件`english.txt`和`中文.txt`。 但打包得到的zip里只有`english.txt`。 ### 期待的结果 可以正确的识别中文路径,并完成打包。 ### 工程配置 [test.zip](https://github.com/user-attachments/files/16045089/test.zip) ###...

bug