Commit 9c4d5e64b4
Changed files (3)
src
codegen
src/codegen/llvm/Builder.zig
@@ -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);
src/codegen/llvm.zig
@@ -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");
src/main.zig
@@ -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