Skip to content
Discussion options

You must be logged in to vote

--cross=aarch64-linux-gnu-

it will call aarch64-linux-gnu-gccfor gcc, unless you rename clang to aarch64-linux-gnu-clang

if use -target for cross-compilation, it's not supported for clang now. you can open a pr to improve it.

if toolchain:is_plat("windows") then
target = target .. "-windows-msvc"
-- add vs environments
local expect_vars = {"PATH", "LIB", "INCLUDE", "LIBPATH"}
local curenvs = os.getenvs()
for _, name in ipairs(expect_vars) do
_add_vsenv(toolchain, name, curenvs)
end
for _, name in ipairs(find_vstudio.get_vcvars()) do
if not table.contains(expect_vars

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Doekin
Comment options

Answer selected by Doekin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants