vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

cross compile arm buildKitTargetArch is unknown

Open 93Alliance opened this issue 3 years ago • 2 comments
trafficstars

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

93Alliance avatar Jun 13 '22 09:06 93Alliance

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.

bobbrow avatar Jun 15 '22 16:06 bobbrow

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

lygstate avatar Jun 15 '22 17:06 lygstate