| ... | @@ -645,15 +645,15 @@ Error target_parse_triple(ZigTarget *target, const char *triple) { | ... | @@ -645,15 +645,15 @@ Error target_parse_triple(ZigTarget *target, const char *triple) { |
| 645 | if (!opt_archsub.is_some) | 645 | if (!opt_archsub.is_some) |
| 646 | return ErrorMissingArchitecture; | 646 | return ErrorMissingArchitecture; |
| 647 | | 647 | |
| 648 | if (!opt_os.is_some) | | |
| 649 | return ErrorMissingOperatingSystem; | | |
| 650 | | | |
| 651 | if ((err = target_parse_archsub(&target->arch, &target->sub_arch, | 648 | if ((err = target_parse_archsub(&target->arch, &target->sub_arch, |
| 652 | (char*)opt_archsub.value.ptr, opt_archsub.value.len))) | 649 | (char*)opt_archsub.value.ptr, opt_archsub.value.len))) |
| 653 | { | 650 | { |
| 654 | return err; | 651 | return err; |
| 655 | } | 652 | } |
| 656 | | 653 | |
| | 654 | if (!opt_os.is_some) |
| | 655 | return ErrorMissingOperatingSystem; |
| | 656 | |
| 657 | if ((err = target_parse_os(&target->os, (char*)opt_os.value.ptr, opt_os.value.len))) { | 657 | if ((err = target_parse_os(&target->os, (char*)opt_os.value.ptr, opt_os.value.len))) { |
| 658 | return err; | 658 | return err; |
| 659 | } | 659 | } |