| ... | @@ -112,6 +112,7 @@ pub fn build(b: *Builder) !void { | ... | @@ -112,6 +112,7 @@ pub fn build(b: *Builder) !void { |
| 112 | const tracy = b.option([]const u8, "tracy", "Enable Tracy integration. Supply path to Tracy source"); | 112 | const tracy = b.option([]const u8, "tracy", "Enable Tracy integration. Supply path to Tracy source"); |
| 113 | const tracy_callstack = b.option(bool, "tracy-callstack", "Include callstack information with Tracy data. Does nothing if -Dtracy is not provided") orelse false; | 113 | const tracy_callstack = b.option(bool, "tracy-callstack", "Include callstack information with Tracy data. Does nothing if -Dtracy is not provided") orelse false; |
| 114 | const tracy_allocation = b.option(bool, "tracy-allocation", "Include allocation information with Tracy data. Does nothing if -Dtracy is not provided") orelse false; | 114 | const tracy_allocation = b.option(bool, "tracy-allocation", "Include allocation information with Tracy data. Does nothing if -Dtracy is not provided") orelse false; |
| | 115 | const force_gpa = b.option(bool, "force-gpa", "Force the compiler to use GeneralPurposeAllocator") orelse false; |
| 115 | const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse enable_llvm; | 116 | const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse enable_llvm; |
| 116 | const strip = b.option(bool, "strip", "Omit debug information") orelse false; | 117 | const strip = b.option(bool, "strip", "Omit debug information") orelse false; |
| 117 | | 118 | |
| ... | @@ -150,6 +151,7 @@ pub fn build(b: *Builder) !void { | ... | @@ -150,6 +151,7 @@ pub fn build(b: *Builder) !void { |
| 150 | exe_options.addOption(bool, "llvm_has_csky", llvm_has_csky); | 151 | exe_options.addOption(bool, "llvm_has_csky", llvm_has_csky); |
| 151 | exe_options.addOption(bool, "llvm_has_ve", llvm_has_ve); | 152 | exe_options.addOption(bool, "llvm_has_ve", llvm_has_ve); |
| 152 | exe_options.addOption(bool, "llvm_has_arc", llvm_has_arc); | 153 | exe_options.addOption(bool, "llvm_has_arc", llvm_has_arc); |
| | 154 | exe_options.addOption(bool, "force_gpa", force_gpa); |
| 153 | | 155 | |
| 154 | if (enable_llvm) { | 156 | if (enable_llvm) { |
| 155 | const cmake_cfg = if (static_llvm) null else findAndParseConfigH(b, config_h_path_option); | 157 | const cmake_cfg = if (static_llvm) null else findAndParseConfigH(b, config_h_path_option); |