How to build assembly files?

There are some assembly files(*.s). I can use clang --target=aarch64-linux-android -c example.s to compile them.

Now i wonder how to use build.zig to build them ?

std.Build.Module and std.Build.Step.Compile have functions to add assembly files:

(I only linked the std.Build.Module one cuz most std.Build.Step.Compile linking functionality will be deprecated with 0.15.0)

2 Likes