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
I have a phony target that unites several other targets. When I try xmake config -a <something>, it fails with toolchain not found for the phony target.
Expected Behavior
Configuration should be applied for only "real" targets, not for the phony ones.
PS F:\Programs\Cpp\xmake-sample> xmake f -a x64checking for architecture ... x64checking for Microsoft Visual Studio (x64) version ... 2022checking for LLVM Clang C/C++ Compiler (x64) version ... 19.1.5checking for Microsoft Visual Studio (x64) version ... 2022checking for Microsoft C/C++ Compiler (x64) version ... 19.42.34435error: target(both): toolchain not found!
The text was updated successfully, but these errors were encountered:
> xmake f -a x64checking for platform ... windowschecking for Microsoft Visual Studio (x64) version ... 2022checking for Microsoft C/C++ Compiler (x64) version ... 19.41.33923checking for Microsoft Visual Studio (x64) version ... 2022checking for LLVM Clang C/C++ Compiler (x64) version ... 18.1.6
> xmake -rvchecking for clang-cl.exe ... C:\Program Files\LLVM\bin\clang-cl.exechecking for the c++ compiler (cxx) ... clang-cl.exechecking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33923\bin\HostX64\x64\cl.exechecking for the c++ compiler (cxx) ... cl.exechecking for C:\Program Files\LLVM\bin\clang-cl.exe ... okchecking for C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33923\bin\HostX64\x64\cl.exe ... okchecking for flags (-O2) ... okchecking for flags (-DNDEBUG) ... ok[ 50%]: compiling.release src\main.cpp"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33923\\bin\\HostX64\\x64\\cl.exe" -c -nologo -O2 /EHsc -DNDEBUG -Fobuild\.objs\sample-msvc\windows\x64\release\src\main.cpp.obj src\main.cppchecking for flags (-O2) ... okchecking for flags (-DNDEBUG) ... ok[ 50%]: cache compiling.release src\main.cpp"C:\\Program Files\\LLVM\\bin\\clang-cl.exe" -c --target=x86_64-pc-windows-msvc -O2 /EHsc -DNDEBUG -Fobuild\.objs\sample-clang\windows\x64\release\src\main.cpp.obj src\main.cppchecking for flags (-fcolor-diagnostics) ... okchecking for flags (-fansi-escape-codes) ... okchecking for flags (cl_sourceDependencies) ... ok[ 60%]: linking.release sample-msvc.exe"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33923\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 /opt:ref /opt:icf -out:build\windows\x64\release\sample-msvc.exe build\.objs\sample-msvc\windows\x64\release\src\main.cpp.obj[ 80%]: linking.release sample-clang.exe"C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.41.33923\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 /opt:ref /opt:icf -out:build\windows\x64\release\sample-clang.exe build\.objs\sample-clang\windows\x64\release\src\main.cpp.objchecking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.33923\bin\HostX64\x64\cl.exechecking for the c compiler (cc) ... cl.exechecking for clang-cl.exe ... C:\Program Files\LLVM\bin\clang-cl.exechecking for the c compiler (cc) ... clang-cl.exe[100%]: build ok, spent 3.984s
Xmake Version
2.9.7
Operating System Version and Architecture
Windows 11 24H2
Describe Bug
I have a phony target that unites several other targets. When I try
xmake config -a <something>
, it fails withtoolchain not found
for the phony target.Expected Behavior
Configuration should be applied for only "real" targets, not for the phony ones.
Project Configuration
Additional Information and Error Logs
The text was updated successfully, but these errors were encountered: