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