mirror of
https://github.com/ziglang/zig.git
synced 2026-02-16 14:28:57 +00:00
llvm: minor fixes
This commit is contained in:
parent
9afb349aba
commit
9c4d5e64b4
@ -8,7 +8,7 @@ const native_endian = builtin.cpu.arch.endian();
|
||||
const DW = std.dwarf;
|
||||
|
||||
const Builder = @import("llvm/Builder.zig");
|
||||
const llvm = if (build_options.have_llvm)
|
||||
const llvm = if (build_options.have_llvm or true)
|
||||
@import("llvm/bindings.zig")
|
||||
else
|
||||
@compileError("LLVM unavailable");
|
||||
|
||||
@ -6644,7 +6644,7 @@ fn bigIntConstAssumeCapacity(
|
||||
} else |_| {
|
||||
const llvm_limbs = try allocator.alloc(u64, std.math.divCeil(
|
||||
usize,
|
||||
canonical_value.bitCountTwosComp(),
|
||||
if (canonical_value.positive) canonical_value.bitCountAbs() else bits,
|
||||
@bitSizeOf(u64),
|
||||
) catch unreachable);
|
||||
defer allocator.free(llvm_limbs);
|
||||
|
||||
@ -439,8 +439,8 @@ const usage_build_generic =
|
||||
\\ -fno-unwind-tables Never produce unwind table entries
|
||||
\\ -fLLVM Force using LLVM as the codegen backend
|
||||
\\ -fno-LLVM Prevent using LLVM as the codegen backend
|
||||
\\ -flibLLVM Force using LLVM shared library apias the codegen backend
|
||||
\\ -fno-libLLVM Prevent using LLVM as the codegen backend
|
||||
\\ -flibLLVM Force using the LLVM API in the codegen backend
|
||||
\\ -fno-libLLVM Prevent using the LLVM API in the codegen backend
|
||||
\\ -fClang Force using Clang as the C/C++ compilation backend
|
||||
\\ -fno-Clang Prevent using Clang as the C/C++ compilation backend
|
||||
\\ -freference-trace[=num] How many lines of reference trace should be shown per compile error
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user