| ... | ... | @@ -384,8 +384,6 @@ const usage_build_generic = |
| 384 | 384 | \\ -fno-emit-h (default) Do not generate a C header file (.h) |
| 385 | 385 | \\ -femit-docs[=path] Create a docs/ dir with html documentation |
| 386 | 386 | \\ -fno-emit-docs (default) Do not produce docs/ dir with html documentation |
| 387 | | \\ -femit-analysis[=path] Write analysis JSON file with type information |
| 388 | | \\ -fno-emit-analysis (default) Do not write analysis JSON file with type information |
| 389 | 387 | \\ -femit-implib[=path] (default) Produce an import .lib when building a Windows DLL |
| 390 | 388 | \\ -fno-emit-implib Do not produce an import .lib when building a Windows DLL |
| 391 | 389 | \\ --show-builtin Output the source of @import("builtin") then exit |
| ... | ... | @@ -755,7 +753,6 @@ fn buildOutputType( |
| 755 | 753 | var emit_llvm_ir: Emit = .no; |
| 756 | 754 | var emit_llvm_bc: Emit = .no; |
| 757 | 755 | var emit_docs: Emit = .no; |
| 758 | | var emit_analysis: Emit = .no; |
| 759 | 756 | var emit_implib: Emit = .yes_default_path; |
| 760 | 757 | var emit_implib_arg_provided = false; |
| 761 | 758 | var target_arch_os_abi: []const u8 = "native"; |
| ... | ... | @@ -1336,12 +1333,6 @@ fn buildOutputType( |
| 1336 | 1333 | emit_docs = .{ .yes = arg["-femit-docs=".len..] }; |
| 1337 | 1334 | } else if (mem.eql(u8, arg, "-fno-emit-docs")) { |
| 1338 | 1335 | emit_docs = .no; |
| 1339 | | } else if (mem.eql(u8, arg, "-femit-analysis")) { |
| 1340 | | emit_analysis = .yes_default_path; |
| 1341 | | } else if (mem.startsWith(u8, arg, "-femit-analysis=")) { |
| 1342 | | emit_analysis = .{ .yes = arg["-femit-analysis=".len..] }; |
| 1343 | | } else if (mem.eql(u8, arg, "-fno-emit-analysis")) { |
| 1344 | | emit_analysis = .no; |
| 1345 | 1336 | } else if (mem.eql(u8, arg, "-femit-implib")) { |
| 1346 | 1337 | emit_implib = .yes_default_path; |
| 1347 | 1338 | emit_implib_arg_provided = true; |
| ... | ... | @@ -2824,24 +2815,6 @@ fn buildOutputType( |
| 2824 | 2815 | }; |
| 2825 | 2816 | defer emit_llvm_bc_resolved.deinit(); |
| 2826 | 2817 | |
| 2827 | | const default_analysis_basename = try std.fmt.allocPrint(arena, "{s}-analysis.json", .{root_name}); |
| 2828 | | var emit_analysis_resolved = emit_analysis.resolve(default_analysis_basename, output_to_cache) catch |err| { |
| 2829 | | switch (emit_analysis) { |
| 2830 | | .yes => |p| { |
| 2831 | | fatal("unable to open directory from argument '-femit-analysis', '{s}': {s}", .{ |
| 2832 | | p, @errorName(err), |
| 2833 | | }); |
| 2834 | | }, |
| 2835 | | .yes_default_path => { |
| 2836 | | fatal("unable to open directory from arguments 'name' or 'soname', '{s}': {s}", .{ |
| 2837 | | default_analysis_basename, @errorName(err), |
| 2838 | | }); |
| 2839 | | }, |
| 2840 | | .no => unreachable, |
| 2841 | | } |
| 2842 | | }; |
| 2843 | | defer emit_analysis_resolved.deinit(); |
| 2844 | | |
| 2845 | 2818 | var emit_docs_resolved = emit_docs.resolve("docs", output_to_cache) catch |err| { |
| 2846 | 2819 | switch (emit_docs) { |
| 2847 | 2820 | .yes => |p| { |
| ... | ... | @@ -3096,7 +3069,6 @@ fn buildOutputType( |
| 3096 | 3069 | .emit_llvm_ir = emit_llvm_ir_resolved.data, |
| 3097 | 3070 | .emit_llvm_bc = emit_llvm_bc_resolved.data, |
| 3098 | 3071 | .emit_docs = emit_docs_resolved.data, |
| 3099 | | .emit_analysis = emit_analysis_resolved.data, |
| 3100 | 3072 | .emit_implib = emit_implib_resolved.data, |
| 3101 | 3073 | .link_mode = link_mode, |
| 3102 | 3074 | .dll_export_fns = dll_export_fns, |