| ... | ... | @@ -148,13 +148,13 @@ pub const Compilation = struct { |
| 148 | 148 | is_static: bool, |
| 149 | 149 | linker_rdynamic: bool = false, |
| 150 | 150 | |
| 151 | | clang_argv: []const []const u8 = [_][]const u8{}, |
| 152 | | lib_dirs: []const []const u8 = [_][]const u8{}, |
| 153 | | rpath_list: []const []const u8 = [_][]const u8{}, |
| 154 | | assembly_files: []const []const u8 = [_][]const u8{}, |
| 151 | clang_argv: []const []const u8 = &[_][]const u8{}, |
| 152 | lib_dirs: []const []const u8 = &[_][]const u8{}, |
| 153 | rpath_list: []const []const u8 = &[_][]const u8{}, |
| 154 | assembly_files: []const []const u8 = &[_][]const u8{}, |
| 155 | 155 | |
| 156 | 156 | /// paths that are explicitly provided by the user to link against |
| 157 | | link_objects: []const []const u8 = [_][]const u8{}, |
| 157 | link_objects: []const []const u8 = &[_][]const u8{}, |
| 158 | 158 | |
| 159 | 159 | /// functions that have their own objects that we need to link |
| 160 | 160 | /// it uses an optional pointer so that tombstone removals are possible |
| ... | ... | @@ -178,10 +178,10 @@ pub const Compilation = struct { |
| 178 | 178 | verbose_llvm_ir: bool = false, |
| 179 | 179 | verbose_link: bool = false, |
| 180 | 180 | |
| 181 | | darwin_frameworks: []const []const u8 = [_][]const u8{}, |
| 181 | darwin_frameworks: []const []const u8 = &[_][]const u8{}, |
| 182 | 182 | darwin_version_min: DarwinVersionMin = .None, |
| 183 | 183 | |
| 184 | | test_filters: []const []const u8 = [_][]const u8{}, |
| 184 | test_filters: []const []const u8 = &[_][]const u8{}, |
| 185 | 185 | test_name_prefix: ?[]const u8 = null, |
| 186 | 186 | |
| 187 | 187 | emit_file_type: Emit = .Binary, |
| ... | ... | @@ -1165,7 +1165,7 @@ pub const Compilation = struct { |
| 1165 | 1165 | const file_name = try std.fmt.allocPrint(self.gpa(), "{}{}", file_prefix[0..], suffix); |
| 1166 | 1166 | defer self.gpa().free(file_name); |
| 1167 | 1167 | |
| 1168 | | const full_path = try std.fs.path.join(self.gpa(), [_][]const u8{ tmp_dir, file_name[0..] }); |
| 1168 | const full_path = try std.fs.path.join(self.gpa(), &[_][]const u8{ tmp_dir, file_name[0..] }); |
| 1169 | 1169 | errdefer self.gpa().free(full_path); |
| 1170 | 1170 | |
| 1171 | 1171 | return Buffer.fromOwnedSlice(self.gpa(), full_path); |
| ... | ... | @@ -1186,7 +1186,7 @@ pub const Compilation = struct { |
| 1186 | 1186 | const zig_dir_path = try getZigDir(self.gpa()); |
| 1187 | 1187 | defer self.gpa().free(zig_dir_path); |
| 1188 | 1188 | |
| 1189 | | const tmp_dir = try std.fs.path.join(self.arena(), [_][]const u8{ zig_dir_path, comp_dir_name[0..] }); |
| 1189 | const tmp_dir = try std.fs.path.join(self.arena(), &[_][]const u8{ zig_dir_path, comp_dir_name[0..] }); |
| 1190 | 1190 | try std.fs.makePath(self.gpa(), tmp_dir); |
| 1191 | 1191 | return tmp_dir; |
| 1192 | 1192 | } |
| ... | ... | @@ -1208,7 +1208,7 @@ pub const Compilation = struct { |
| 1208 | 1208 | } |
| 1209 | 1209 | |
| 1210 | 1210 | var result: [12]u8 = undefined; |
| 1211 | | b64_fs_encoder.encode(result[0..], rand_bytes); |
| 1211 | b64_fs_encoder.encode(result[0..], &rand_bytes); |
| 1212 | 1212 | return result; |
| 1213 | 1213 | } |
| 1214 | 1214 | |