| ... | @@ -1952,9 +1952,13 @@ pub fn performAllTheWork(self: *Compilation) error{ TimerUnsupported, OutOfMemor | ... | @@ -1952,9 +1952,13 @@ pub fn performAllTheWork(self: *Compilation) error{ TimerUnsupported, OutOfMemor |
| 1952 | } | 1952 | } |
| 1953 | } | 1953 | } |
| 1954 | | 1954 | |
| 1955 | // Iterate over all the files and look for outdated and deleted declarations. | 1955 | const use_stage1 = build_options.omit_stage2 or |
| 1956 | if (self.bin_file.options.module) |mod| { | 1956 | (build_options.is_stage1 and self.bin_file.options.use_llvm); |
| 1957 | try mod.processOutdatedAndDeletedDecls(); | 1957 | if (!use_stage1) { |
| | 1958 | // Iterate over all the files and look for outdated and deleted declarations. |
| | 1959 | if (self.bin_file.options.module) |mod| { |
| | 1960 | try mod.processOutdatedAndDeletedDecls(); |
| | 1961 | } |
| 1958 | } | 1962 | } |
| 1959 | | 1963 | |
| 1960 | while (self.work_queue.readItem()) |work_item| switch (work_item) { | 1964 | while (self.work_queue.readItem()) |work_item| switch (work_item) { |