vscode-cmake-tools
vscode-cmake-tools copied to clipboard
cross compile arm buildKitTargetArch is unknown
Brief Issue Summary
My host os is ubuntu, I need to cross-compile the ARM architecture project. I set cmake.buildDirectory by buildKitTargetArch variant, but result is unknow. I expect it to be aarch64.
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
Right now, the extension does not query the compiler for supported cross-compile targets. The command is essentially gcc -v. I believe this only reports the host triplet. @lygstate, I believe you added this code. Do you know of a way we could support cross-compile targets? My reading online seems to suggest that the compiler will always report the host triplet, and not the target triplet, but I could be wrong.
Right now, the extension does not query the compiler for supported cross-compile targets. The command is essentially
gcc -v. I believe this only reports the host triplet. @lygstate, I believe you added this code. Do you know of a way we could support cross-compile targets? My reading online seems to suggest that the compiler will always report the host triplet, and not the target triplet, but I could be wrong.
I did it a lot, the issue not from this extension, @93Alliance please update the cmake configure arguments such as -DCMAKE_SYSTEM_NAME=Linux or someting alike, that's the cause