mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 15:12:31 +00: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
@ -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…
Reference in New Issue
Block a user