| ... | ... | @@ -313,8 +313,6 @@ const Serialize = struct { |
| 313 | 313 | .producer = true, |
| 314 | 314 | .generated = false, |
| 315 | 315 | .dep_file = false, |
| 316 | | .target_query = false, |
| 317 | | .link_libc = false, |
| 318 | 316 | }, |
| 319 | 317 | .prefix = .{ .value = if (a.prefix.len != 0) try wc.addString(a.prefix) else null }, |
| 320 | 318 | .suffix = .{ .value = null }, |
| ... | ... | @@ -322,7 +320,6 @@ const Serialize = struct { |
| 322 | 320 | .path = .{ .value = null }, |
| 323 | 321 | .producer = .{ .value = stepIndex(s, &a.artifact.step) }, |
| 324 | 322 | .generated = .{ .value = null }, |
| 325 | | .target_query = .{ .value = null }, |
| 326 | 323 | }, |
| 327 | 324 | .lazy_path => |a| .{ |
| 328 | 325 | .flags = .{ |
| ... | ... | @@ -334,8 +331,6 @@ const Serialize = struct { |
| 334 | 331 | .producer = false, |
| 335 | 332 | .generated = false, |
| 336 | 333 | .dep_file = false, |
| 337 | | .target_query = false, |
| 338 | | .link_libc = false, |
| 339 | 334 | }, |
| 340 | 335 | .prefix = .{ .value = if (a.prefix.len != 0) try wc.addString(a.prefix) else null }, |
| 341 | 336 | .suffix = .{ .value = null }, |
| ... | ... | @@ -343,7 +338,6 @@ const Serialize = struct { |
| 343 | 338 | .path = .{ .value = try addLazyPath(s, a.lazy_path) }, |
| 344 | 339 | .producer = .{ .value = null }, |
| 345 | 340 | .generated = .{ .value = null }, |
| 346 | | .target_query = .{ .value = null }, |
| 347 | 341 | }, |
| 348 | 342 | .decorated_directory => |a| .{ |
| 349 | 343 | .flags = .{ |
| ... | ... | @@ -355,8 +349,6 @@ const Serialize = struct { |
| 355 | 349 | .producer = false, |
| 356 | 350 | .generated = false, |
| 357 | 351 | .dep_file = false, |
| 358 | | .target_query = false, |
| 359 | | .link_libc = false, |
| 360 | 352 | }, |
| 361 | 353 | .prefix = .{ .value = if (a.prefix.len != 0) try wc.addString(a.prefix) else null }, |
| 362 | 354 | .suffix = .{ .value = if (a.suffix.len != 0) try wc.addString(a.suffix) else null }, |
| ... | ... | @@ -364,7 +356,6 @@ const Serialize = struct { |
| 364 | 356 | .path = .{ .value = try addLazyPath(s, a.lazy_path) }, |
| 365 | 357 | .producer = .{ .value = null }, |
| 366 | 358 | .generated = .{ .value = null }, |
| 367 | | .target_query = .{ .value = null }, |
| 368 | 359 | }, |
| 369 | 360 | .file_content => |a| .{ |
| 370 | 361 | .flags = .{ |
| ... | ... | @@ -376,8 +367,6 @@ const Serialize = struct { |
| 376 | 367 | .producer = false, |
| 377 | 368 | .generated = false, |
| 378 | 369 | .dep_file = false, |
| 379 | | .target_query = false, |
| 380 | | .link_libc = false, |
| 381 | 370 | }, |
| 382 | 371 | .prefix = .{ .value = if (a.prefix.len != 0) try wc.addString(a.prefix) else null }, |
| 383 | 372 | .suffix = .{ .value = null }, |
| ... | ... | @@ -385,7 +374,6 @@ const Serialize = struct { |
| 385 | 374 | .path = .{ .value = try addLazyPath(s, a.lazy_path) }, |
| 386 | 375 | .producer = .{ .value = null }, |
| 387 | 376 | .generated = .{ .value = null }, |
| 388 | | .target_query = .{ .value = null }, |
| 389 | 377 | }, |
| 390 | 378 | .bytes => |a| .{ |
| 391 | 379 | .flags = .{ |
| ... | ... | @@ -397,8 +385,6 @@ const Serialize = struct { |
| 397 | 385 | .producer = false, |
| 398 | 386 | .generated = false, |
| 399 | 387 | .dep_file = false, |
| 400 | | .target_query = false, |
| 401 | | .link_libc = false, |
| 402 | 388 | }, |
| 403 | 389 | .prefix = .{ .value = try wc.addString(a) }, |
| 404 | 390 | .suffix = .{ .value = null }, |
| ... | ... | @@ -406,7 +392,6 @@ const Serialize = struct { |
| 406 | 392 | .path = .{ .value = null }, |
| 407 | 393 | .producer = .{ .value = null }, |
| 408 | 394 | .generated = .{ .value = null }, |
| 409 | | .target_query = .{ .value = null }, |
| 410 | 395 | }, |
| 411 | 396 | .output_file, .output_file_dep => |a, tag| .{ |
| 412 | 397 | .flags = .{ |
| ... | ... | @@ -418,8 +403,6 @@ const Serialize = struct { |
| 418 | 403 | .producer = false, |
| 419 | 404 | .generated = true, |
| 420 | 405 | .dep_file = tag == .output_file_dep, |
| 421 | | .target_query = false, |
| 422 | | .link_libc = false, |
| 423 | 406 | }, |
| 424 | 407 | .prefix = .{ .value = if (a.prefix.len != 0) try wc.addString(a.prefix) else null }, |
| 425 | 408 | .suffix = .{ .value = null }, |
| ... | ... | @@ -427,7 +410,6 @@ const Serialize = struct { |
| 427 | 410 | .path = .{ .value = null }, |
| 428 | 411 | .producer = .{ .value = null }, |
| 429 | 412 | .generated = .{ .value = a.generated_file }, |
| 430 | | .target_query = .{ .value = null }, |
| 431 | 413 | }, |
| 432 | 414 | .output_directory => |a| .{ |
| 433 | 415 | .flags = .{ |
| ... | ... | @@ -439,8 +421,6 @@ const Serialize = struct { |
| 439 | 421 | .producer = false, |
| 440 | 422 | .generated = true, |
| 441 | 423 | .dep_file = false, |
| 442 | | .target_query = false, |
| 443 | | .link_libc = false, |
| 444 | 424 | }, |
| 445 | 425 | .prefix = .{ .value = if (a.prefix.len != 0) try wc.addString(a.prefix) else null }, |
| 446 | 426 | .suffix = .{ .value = null }, |
| ... | ... | @@ -448,7 +428,6 @@ const Serialize = struct { |
| 448 | 428 | .path = .{ .value = null }, |
| 449 | 429 | .producer = .{ .value = null }, |
| 450 | 430 | .generated = .{ .value = a.generated_file }, |
| 451 | | .target_query = .{ .value = null }, |
| 452 | 431 | }, |
| 453 | 432 | .passthru => .{ |
| 454 | 433 | .flags = .{ |
| ... | ... | @@ -460,8 +439,6 @@ const Serialize = struct { |
| 460 | 439 | .producer = false, |
| 461 | 440 | .generated = false, |
| 462 | 441 | .dep_file = false, |
| 463 | | .target_query = false, |
| 464 | | .link_libc = false, |
| 465 | 442 | }, |
| 466 | 443 | .prefix = .{ .value = null }, |
| 467 | 444 | .suffix = .{ .value = null }, |
| ... | ... | @@ -469,28 +446,6 @@ const Serialize = struct { |
| 469 | 446 | .path = .{ .value = null }, |
| 470 | 447 | .producer = .{ .value = null }, |
| 471 | 448 | .generated = .{ .value = null }, |
| 472 | | .target_query = .{ .value = null }, |
| 473 | | }, |
| 474 | | .cc_args => |a| .{ |
| 475 | | .flags = .{ |
| 476 | | .tag = .cc_args, |
| 477 | | .prefix = false, |
| 478 | | .suffix = false, |
| 479 | | .basename = false, |
| 480 | | .path = false, |
| 481 | | .producer = false, |
| 482 | | .generated = false, |
| 483 | | .dep_file = false, |
| 484 | | .target_query = a.target_query != .none, |
| 485 | | .link_libc = a.link_libc, |
| 486 | | }, |
| 487 | | .prefix = .{ .value = null }, |
| 488 | | .suffix = .{ .value = null }, |
| 489 | | .basename = .{ .value = null }, |
| 490 | | .path = .{ .value = null }, |
| 491 | | .producer = .{ .value = null }, |
| 492 | | .generated = .{ .value = null }, |
| 493 | | .target_query = .{ .value = a.target_query.unwrap() }, |
| 494 | 449 | }, |
| 495 | 450 | }); |
| 496 | 451 | } |