Commit Graph

1784 Commits

Author SHA1 Message Date
David Ungar
75d2871b8e JobContext name fixes 2018-03-12 16:34:18 -07:00
David Ungar
3570af7476 Fixes 2018-03-12 15:40:08 -07:00
swift-ci
7d16d131e7 Merge pull request #15091 from graydon/batch-mode-formation-minor-fixes 2018-03-12 04:40:02 -07:00
David Ungar
180bdd61be Implement -index-file-path 2018-03-11 11:48:21 -07:00
David Ungar
ba1a714dbe Formatting 2018-03-10 16:10:38 -08:00
David Ungar
c9db72c1cb Debug macro 2018-03-09 19:58:20 -08:00
David Ungar
f7b4ee00f9 OFM fixes 2018-03-09 19:57:06 -08:00
David Ungar
65267c6568 WIP 2018-03-09 15:45:38 -08:00
David Ungar
adfda9bbc8 Add -driver-force-one-batch-repartition and enhance batch_mode-overlong_argv test. 2018-03-09 13:54:44 -08:00
David Ungar
798dd7b490 Write out filemaps for supplementary outputs. 2018-03-09 13:54:44 -08:00
Graydon Hoare
fa830fe5aa [BatchMode] Preserve invariant that shuffled batches are subsequences of inputs. 2018-03-09 10:13:04 -08:00
David Ungar
89061efdf4 Fix bug on OutputFileMap parser when parsing beyond JSON. 2018-03-09 09:54:11 -08:00
Graydon Hoare
03a9340ef4 [BatchMode] Remove a low-value quadratic assertion. 2018-03-08 20:50:09 -08:00
Sho Ikeda
cea6c03eb2 [gardening] Use !empty() over size() > 0 2018-03-08 09:21:09 +09:00
Jake Petroules
96c0083d02 [Driver] Provide executed command as an actual array (#15012)
This patch adds additional entries to the JSON command messages output
by the Swift compiler. It's now possible to get the command executable
("command_executable") and arguments ("command_arguments") as a single
string and array, respectively, rather than having to parse the
shell-escaped command line provided in the "command" key.

<rdar://problem/35701809>
2018-03-07 10:40:38 -08:00
Sho Ikeda
25cdc981c7 Merge pull request #14977 from ikesyo/gardening-use-empty
[gardening] Use `empty()` over `size() == 0`
2018-03-07 09:34:26 +09:00
David Ungar
90d2740817 Merge pull request #14961 from davidungar/PR-18-10-HHH
[Batch mode] Restore -### functionality for batch-mode by extending OutputLevel.
2018-03-06 09:54:03 -08:00
Jordan Rose
be4c2b97fc Merge pull request #14950 from Nonchalant/sr_7040_redundant_D
[SR-7040] Redundant prefix of compilation flag specific error
2018-03-06 08:56:27 -08:00
Graydon Hoare
babd8375f3 Merge pull request #14976 from graydon/rdar-38123690-task-queue-exec-errors
rdar://38123690 (overlarge batches) and rdar://37865437 (task queue exec errors)
2018-03-05 15:42:29 -08:00
Graydon Hoare
6c9029ead8 [BatchMode] Fix rdar://38123690 a little more robustly. 2018-03-05 13:43:30 -08:00
Graydon Hoare
eb315e74ed [BatchMode] Temporarily cap max batch size, fixing rdar://38123690 2018-03-05 12:28:48 -08:00
Graydon Hoare
899c1f5b87 [Driver] Handle failure-to-exec somewhat more politely, rdar://37865437. 2018-03-05 12:28:48 -08:00
David Ungar
17a81f6981 Restore -### functionality for batch-mode by extending OutputLevel. 2018-03-05 11:07:20 -08:00
Graydon Hoare
2de60a4a0b [BatchMode] Collect InputActions correctly when merging jobs. 2018-03-05 01:03:09 -08:00
Sho Ikeda
26d650292f [gardening] Use empty() over size() == 0 2018-03-05 14:43:13 +09:00
Nonchalant
3fca891628 active conditional compilations: show friendly error message 2018-03-03 13:02:16 +09:00
Graydon Hoare
a9b49a9f60 Merge pull request #14931 from graydon/batch-mode-exit-per-batch
[BatchMode] Make driver report exits per-batch, not per-constituent.
2018-03-02 17:53:05 -08:00
George Karpenkov
a65da887f2 Determine whether a given sanitizer is available based on the presenc… (#14919)
Determine whether a given sanitizer is available based on the presence of the library.

rdar://37192887
2018-03-02 16:57:45 -08:00
Graydon Hoare
2920fe42d4 [BatchMode] Print multiple additional outputs in -parseable-output. 2018-03-02 14:22:44 -08:00
Graydon Hoare
7981714214 [BatchMode] Make driver report exits per-batch, not per-constituent. 2018-03-02 00:32:30 -08:00
Graydon Hoare
45c78c4f7d [BatchMode] Add a pile of asserts to CommandOutput. 2018-02-28 14:07:25 -08:00
Graydon Hoare
8ceeecc33c [BatchMode] Actually wire-up the part that pushes multiple aux output args. 2018-02-24 00:45:23 -08:00
swift-ci
786cfc5ed1 Merge pull request #14703 from graydon/profile-stats 2018-02-21 19:21:59 -08:00
Graydon Hoare
628c446fe3 [Stats] Add -profile-stats-{events,entities} 2018-02-21 16:22:48 -08:00
Ben Langmuir
d991452367 Merge pull request #14746 from benlangmuir/working-directory
[driver] Add -working-directory option
2018-02-21 14:56:56 -08:00
Ben Langmuir
20cb3e3eb2 [driver] Add -working-directory option
Adds a -working-directory option which can be used to modify how
relative paths are resolved. It affects all other paths used in driver
options (controlled by a new ArgumentIsPath flag on options) as well as
the contents of output file maps and auxilliary file paths generated
implicitly by the compiler itself.

rdar://37713856
2018-02-21 09:42:05 -08:00
Graydon Hoare
263c4c54d5 [BatchMode] Preserve intra-batch order, add a seed mode. 2018-02-20 18:31:41 -08:00
Graydon Hoare
21319c0d4d [Driver] cleanup: elide over-long output lists, use StringRefs. 2018-02-20 14:45:54 -08:00
Graydon Hoare
57fe9ee57a [BatchMode] Add driver::PerformJobsState logic for BatchJobs. 2018-02-15 15:38:09 -08:00
Graydon Hoare
3d9ce0afb9 [BatchMode] Store -{enable,disable}-batch-mode as a flag in Compilation. 2018-02-15 15:38:09 -08:00
Graydon Hoare
2bf7a7967a [BatchMode] Add batch-mode support methods to ToolChain. 2018-02-15 15:38:09 -08:00
Graydon Hoare
a2c718777d [BatchMode] Pass OutputInfo to Compilation on construction. 2018-02-15 15:38:08 -08:00
Graydon Hoare
83aeb39895 [BatchMode] Add CommandOutput::addOutputs and hasSameAdditionalOutputTypes. 2018-02-15 15:37:55 -08:00
Graydon Hoare
6132f18994 [BatchMode] Add virtual destructor to Job. 2018-02-15 15:15:34 -08:00
Saleem Abdulrasool
fe01c6a2fc Driver: collapse getClangLibraryPath[On*] (NFC)
Rather than have a function per-target, create a single implementation
that is generic enough to handle the various targets.  NFC.
2018-02-10 21:39:32 -08:00
Graydon Hoare
f9d7bd2584 [BatchMode] Add PrettyStackTrace helpers to Driver. 2018-02-09 14:10:46 -08:00
Graydon Hoare
ef61f721d4 [BatchMode] Change all CommandOutputs to use a shared OutputFileMap. 2018-02-09 14:08:50 -08:00
Graydon Hoare
e66e0f5ae0 [BatchMode] Add subtree accessors for OutputFileMap. 2018-02-09 14:06:23 -08:00
Graydon Hoare
dd75636377 [BatchMode] Add -driver-print-derived-output-file-map 2018-02-09 14:06:23 -08:00
Saleem Abdulrasool
b49d69f4b3 Driver: avoid unnecessary break after return in switch
Adjust the style to avoid the unnecessary break after the return in the
switch cases.  NFC.
2018-02-07 15:11:16 -08:00