mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48: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
9ef2208e4b
commit
b2578329af
@ -6843,10 +6843,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…
x
Reference in New Issue
Block a user