Hello!
Tell me please.
What should I specify in the script (Build.gradle) for working with assembly language?
At the moment I am using the following …
apply plugin: ‘assembler’
model {
components {
main(NativeExecutableSpec) {
sources {
asm {
source {
srcDirs “src/main/asm”
// include “**/*.s”
}
}
}
}
}
toolChains {
gcc(Gcc) {
path "C:/cygwin64/bin"
}
}
}
But, at the output, I get an error:
Task :assembleMainExecutableMainAsm FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:assembleMainExecutableMainAsm’.
No tool chain is available to build for platform ‘windows_x86’:
- Tool chain ‘gcc’ (GNU GCC):
- Could not determine GCC metadata: could not find vendor in output of C:\cygwin64\bin\gcc.exe.
I am using windows 7 64 + cygwin64
gcc --version
gcc 7.4.0
as -version
(GNU Binutils) 2.29.1.20171006
target x86_64-pc-cygwin.
Tell me what I’m doing wrong ? Thank you