mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
fix build failure when llvm not available
This commit is contained in:
parent
77af309cb6
commit
2391c460b1
@ -178,7 +178,9 @@ pub const CrtFile = enum {
|
||||
libc_nonshared_a,
|
||||
};
|
||||
|
||||
pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progress.Node) !void {
|
||||
/// TODO replace anyerror with explicit error set, recording user-friendly errors with
|
||||
/// setMiscFailure and returning error.SubCompilationFailed. see libcxx.zig for example.
|
||||
pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progress.Node) anyerror!void {
|
||||
if (!build_options.have_llvm) {
|
||||
return error.ZigCompilerNotBuiltWithLLVMExtensions;
|
||||
}
|
||||
@ -735,7 +737,9 @@ fn wordDirective(target: std.Target) []const u8 {
|
||||
return if (target.ptrBitWidth() == 64) ".quad" else ".long";
|
||||
}
|
||||
|
||||
pub fn buildSharedObjects(comp: *Compilation, prog_node: std.Progress.Node) !void {
|
||||
/// TODO replace anyerror with explicit error set, recording user-friendly errors with
|
||||
/// setMiscFailure and returning error.SubCompilationFailed. see libcxx.zig for example.
|
||||
pub fn buildSharedObjects(comp: *Compilation, prog_node: std.Progress.Node) anyerror!void {
|
||||
const tracy = trace(@src());
|
||||
defer tracy.end();
|
||||
|
||||
|
||||
@ -17,7 +17,9 @@ pub const CrtFile = enum {
|
||||
mingw32_lib,
|
||||
};
|
||||
|
||||
pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progress.Node) !void {
|
||||
/// TODO replace anyerror with explicit error set, recording user-friendly errors with
|
||||
/// setMiscFailure and returning error.SubCompilationFailed. see libcxx.zig for example.
|
||||
pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progress.Node) anyerror!void {
|
||||
if (!build_options.have_llvm) {
|
||||
return error.ZigCompilerNotBuiltWithLLVMExtensions;
|
||||
}
|
||||
|
||||
@ -18,7 +18,9 @@ pub const CrtFile = enum {
|
||||
libc_so,
|
||||
};
|
||||
|
||||
pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Progress.Node) !void {
|
||||
/// TODO replace anyerror with explicit error set, recording user-friendly errors with
|
||||
/// setMiscFailure and returning error.SubCompilationFailed. see libcxx.zig for example.
|
||||
pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Progress.Node) anyerror!void {
|
||||
if (!build_options.have_llvm) {
|
||||
return error.ZigCompilerNotBuiltWithLLVMExtensions;
|
||||
}
|
||||
|
||||
@ -57,7 +57,9 @@ pub fn execModelCrtFileFullName(wasi_exec_model: std.builtin.WasiExecModel) []co
|
||||
};
|
||||
}
|
||||
|
||||
pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progress.Node) !void {
|
||||
/// TODO replace anyerror with explicit error set, recording user-friendly errors with
|
||||
/// setMiscFailure and returning error.SubCompilationFailed. see libcxx.zig for example.
|
||||
pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progress.Node) anyerror!void {
|
||||
if (!build_options.have_llvm) {
|
||||
return error.ZigCompilerNotBuiltWithLLVMExtensions;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user