mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:24:49 +01:00
compiler: delete dependency on LLVM ParseCommandLineOptions
This commit is contained in:
parent
757ec185f0
commit
a6067c3821
3 changed files with 0 additions and 13 deletions
|
|
@ -335,9 +335,6 @@ extern fn ZigLLVMWriteArchive(
|
|||
archive_kind: ArchiveKind,
|
||||
) bool;
|
||||
|
||||
pub const ParseCommandLineOptions = ZigLLVMParseCommandLineOptions;
|
||||
extern fn ZigLLVMParseCommandLineOptions(argc: usize, argv: [*]const [*:0]const u8) void;
|
||||
|
||||
pub const GetHostCPUName = LLVMGetHostCPUName;
|
||||
extern fn LLVMGetHostCPUName() ?[*:0]u8;
|
||||
|
||||
|
|
|
|||
|
|
@ -3446,12 +3446,6 @@ fn buildOutputType(
|
|||
src.src_path = try dirs.local_cache.join(arena, &.{sub_path});
|
||||
}
|
||||
|
||||
if (build_options.have_llvm and emit_asm_resolved != .no) {
|
||||
// LLVM has no way to set this non-globally.
|
||||
const argv = [_][*:0]const u8{ "zig (LLVM option parsing)", "--x86-asm-syntax=intel" };
|
||||
@import("codegen/llvm/bindings.zig").ParseCommandLineOptions(argv.len, &argv);
|
||||
}
|
||||
|
||||
const clang_passthrough_mode = switch (arg_mode) {
|
||||
.cc, .cpp, .translate_c => true,
|
||||
else => false,
|
||||
|
|
|
|||
|
|
@ -468,10 +468,6 @@ bool ZigLLVMGetBrokenDebugInfo(LLVMContextRef context_ref) {
|
|||
unwrap(context_ref)->getDiagHandlerPtr())->BrokenDebugInfo;
|
||||
}
|
||||
|
||||
void ZigLLVMParseCommandLineOptions(size_t argc, const char *const *argv) {
|
||||
cl::ParseCommandLineOptions(argc, argv);
|
||||
}
|
||||
|
||||
bool ZigLLVMWriteArchive(const char *archive_name, const char **file_names, size_t file_name_count,
|
||||
ZigLLVMArchiveKind archive_kind)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue