| author | |
| committer | |
| log | ed1f00582670df44c15875914a1cc8fc0ff6329f |
| tree | 7d256d743399ad131ec5c4cb54f4869305236387 |
| parent | 31c159c228ecf6c2ffcf44ee44621c3d6b1ceb61 |
3 files changed, 6 insertions(+), 11 deletions(-)
lib/compiler/Maker/Step/Compile.zig+5-8| ... | @@ -1354,6 +1354,7 @@ pub fn appendIncludeDirFlags( | ... | @@ -1354,6 +1354,7 @@ pub fn appendIncludeDirFlags( |
| 1354 | ) !void { | 1354 | ) !void { |
| 1355 | const graph = maker.graph; | 1355 | const graph = maker.graph; |
| 1356 | const arena = graph.arena; // TODO don't leak into the process arena | 1356 | const arena = graph.arena; // TODO don't leak into the process arena |
| 1357 | const conf = &maker.scanned_config.configuration; | ||
| 1357 | 1358 | ||
| 1358 | switch (include_dir) { | 1359 | switch (include_dir) { |
| 1359 | .path => |lp| { | 1360 | .path => |lp| { |
| ... | @@ -1376,15 +1377,11 @@ pub fn appendIncludeDirFlags( | ... | @@ -1376,15 +1377,11 @@ pub fn appendIncludeDirFlags( |
| 1376 | zig_args.appendAssumeCapacity("-iframework"); | 1377 | zig_args.appendAssumeCapacity("-iframework"); |
| 1377 | zig_args.appendAssumeCapacity(try maker.resolveLazyPathIndexAbs(arena, lp, asking_step)); | 1378 | zig_args.appendAssumeCapacity(try maker.resolveLazyPathIndexAbs(arena, lp, asking_step)); |
| 1378 | }, | 1379 | }, |
| 1379 | .config_header_step => |ch| { | 1380 | .config_header_step => |ch_index| { |
| 1380 | zig_args.appendAssumeCapacity("-I"); | 1381 | const conf_ch = ch_index.ptr(conf).extended.get(conf.extra).config_header; |
| 1381 | if (true) @panic("TODO appendIncludeDirFlags"); | 1382 | const path = maker.generatedPath(conf_ch.generated_dir).*; |
| 1382 | ch.getOutputDir(); | ||
| 1383 | }, | ||
| 1384 | .other_step => |comp| { | ||
| 1385 | zig_args.appendAssumeCapacity("-I"); | 1383 | zig_args.appendAssumeCapacity("-I"); |
| 1386 | if (true) @panic("TODO appendIncludeDirFlags"); | 1384 | zig_args.appendAssumeCapacity(try path.toString(arena)); |
| 1387 | comp.installed_headers_include_tree.?.getDirectory(); | ||
| 1388 | }, | 1385 | }, |
| 1389 | .embed_path => |lazy_path| { | 1386 | .embed_path => |lazy_path| { |
| 1390 | zig_args.appendAssumeCapacity(try allocPrint(arena, "--embed-dir={f}", .{ | 1387 | zig_args.appendAssumeCapacity(try allocPrint(arena, "--embed-dir={f}", .{ |
lib/compiler/configurer.zig+1-1| ... | @@ -469,7 +469,7 @@ const Serialize = struct { | ... | @@ -469,7 +469,7 @@ const Serialize = struct { |
| 469 | .framework_path => |lp| .{ .framework_path = try addLazyPath(s, lp) }, | 469 | .framework_path => |lp| .{ .framework_path = try addLazyPath(s, lp) }, |
| 470 | .framework_path_system => |lp| .{ .framework_path_system = try addLazyPath(s, lp) }, | 470 | .framework_path_system => |lp| .{ .framework_path_system = try addLazyPath(s, lp) }, |
| 471 | .embed_path => |lp| .{ .embed_path = try addLazyPath(s, lp) }, | 471 | .embed_path => |lp| .{ .embed_path = try addLazyPath(s, lp) }, |
| 472 | .other_step => |cs| .{ .other_step = stepIndex(s, &cs.step) }, | 472 | .other_step => |cs| .{ .path = try addLazyPath(s, cs.installed_headers_include_tree.?.getDirectory()) }, |
| 473 | .config_header_step => |chs| .{ .config_header_step = stepIndex(s, &chs.step) }, | 473 | .config_header_step => |chs| .{ .config_header_step = stepIndex(s, &chs.step) }, |
| 474 | }; | 474 | }; |
| 475 | return result; | 475 | return result; |
lib/std/Build/Configuration.zig-2| ... | @@ -1680,8 +1680,6 @@ pub const Module = struct { | ... | @@ -1680,8 +1680,6 @@ pub const Module = struct { |
| 1680 | path_after: LazyPath.Index, | 1680 | path_after: LazyPath.Index, |
| 1681 | framework_path: LazyPath.Index, | 1681 | framework_path: LazyPath.Index, |
| 1682 | framework_path_system: LazyPath.Index, | 1682 | framework_path_system: LazyPath.Index, |
| 1683 | /// Always `Step.Tag.compile`. | ||
| 1684 | other_step: Step.Index, | ||
| 1685 | /// Always `Step.Tag.config_header`. | 1683 | /// Always `Step.Tag.config_header`. |
| 1686 | config_header_step: Step.Index, | 1684 | config_header_step: Step.Index, |
| 1687 | embed_path: LazyPath.Index, | 1685 | embed_path: LazyPath.Index, |