mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
compiler: Update clangMightShellOutForAssembly() for Clang 19.
Clang only uses the system assembler for nvptx and xcore nowadays.
This commit is contained in:
parent
bd7dda0c55
commit
56b416662a
1 changed files with 2 additions and 3 deletions
|
|
@ -327,9 +327,8 @@ pub fn libcFullLinkFlags(target: std.Target) []const []const u8 {
|
|||
}
|
||||
|
||||
pub fn clangMightShellOutForAssembly(target: std.Target) bool {
|
||||
// Clang defaults to using the system assembler over the internal one
|
||||
// when targeting a non-BSD OS.
|
||||
return target.cpu.arch.isSPARC();
|
||||
// Clang defaults to using the system assembler in some cases.
|
||||
return target.cpu.arch.isNvptx() or target.cpu.arch == .xcore;
|
||||
}
|
||||
|
||||
/// Each backend architecture in Clang has a different codepath which may or may not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue