mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
zig cc: don't pass -mcmodel for assembly files
It does nothing but generate a warning for these.
This commit is contained in:
parent
91040b5678
commit
ade570f0d5
1 changed files with 4 additions and 4 deletions
|
|
@ -6838,10 +6838,6 @@ pub fn addCCArgs(
|
|||
try argv.append("-municode");
|
||||
}
|
||||
|
||||
if (mod.code_model != .default) {
|
||||
try argv.append(try std.fmt.allocPrint(arena, "-mcmodel={s}", .{@tagName(mod.code_model)}));
|
||||
}
|
||||
|
||||
try argv.ensureUnusedCapacity(2);
|
||||
switch (comp.config.debug_format) {
|
||||
.strip => {},
|
||||
|
|
@ -7136,6 +7132,10 @@ pub fn addCCArgs(
|
|||
.ll,
|
||||
.bc,
|
||||
=> {
|
||||
if (mod.code_model != .default) {
|
||||
try argv.append(try std.fmt.allocPrint(arena, "-mcmodel={s}", .{@tagName(mod.code_model)}));
|
||||
}
|
||||
|
||||
if (target_util.clangSupportsTargetCpuArg(target)) {
|
||||
if (target.cpu.model.llvm_name) |llvm_name| {
|
||||
try argv.appendSlice(&[_][]const u8{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue