Commit Graph

20 Commits

Author SHA1 Message Date
Eric Miotto
8fc2598167 [build-script] Allow to tune dsymutil parallelism (#34795)
This should enable scaling when using machines with large amount of
RAM.

To better support machines with lower spec, process one binary per
dsymutil invocation (reverting #34149).

Add some (limited) facilities to gather the time taken to execute
dsymutil to better assist in tuning the parameter -- these are printed in
JSON format in the log to allow for easier scraping

```
{ "command": "dsymutil", "start": "2020-11-18T18:10:47" }
{ "command": "dsymutil", "end": "2020-11-18T18:14:45" }
```

Addresses rdar://71018443
2020-12-01 07:11:10 -08:00
Robert Widmann
161fa16cf8 Revert "Turn on Verbose Output For Test"
This reverts commit c34212aa20.
2020-08-29 17:20:49 -07:00
Robert Widmann
c34212aa20 Turn on Verbose Output For Test 2020-08-29 09:40:09 -07:00
Andrew Trick
4b6641f15f Merge pull request #32860 from buttaface/skip-build
[build] Fix --skip-build-llvm so that its minimal targets, like tblgen, are still built
2020-07-20 20:43:18 -07:00
Butta
c969814a11 [build] Fix --skip-build-llvm so that its minimal targets, like tblgen, are still built 2020-07-18 03:45:17 +05:30
Butta
09e30ef00c [test] Enable standalone_build feature properly and fix three tests
Two tests were mislabeled and a third needed its output reordered.
2020-07-18 03:10:31 +05:30
Michael Gottesman
a7b3e37471 [build-script] Print out inferred products/build order when --verbose-build is enabled. 2020-06-11 22:23:17 -07:00
David Zarzycki
f171358eb5 [testing] Add missing REQUIRES: standalone_test 2020-06-11 08:54:13 -04:00
David Zarzycki
537b103012 [testing] add missing REQUIRES: standalone_build 2020-06-10 05:58:24 -04:00
Michael Gottesman
a313f62522 [build-script] Add option --infer to infer dependencies.
This causes build-script to use the conservative dependency information that I
committed. When one uses this option, it is assumed that one wants to also
install all built products.

Some notes:

1. I included an extra --install-all option so without --infer enabled
   one can enable this sort of install everything that we want to
   build behavior.

2. I added %cmake as a lit variable. I did this so I could specify in
   my build-system unit tests that on Linux they should use the just
   built cmake (if we built cmake due to an old cmake being on the
   system). Otherwise, the build system unit tests took way too
   long. These are meant to be dry-runs, so building this cmake again
   is just wasteful and doesn't make sense.

3. I unified how we handle cmark, llvm, swift with the rest of the
   build products by making them conditional on build_* variables, but
   to preserve current behavior I made it so that they are just
   enabled by default unlike things like
   llbuild/swiftpm/foundation/etc. This was necessary since previously
   we would just pass these flags to build-script-impl and
   build-script didn't know about them. Now I taught build-script
   about them so I can manipulate these skip-build-{cmark,llvm,swift}
   and then just pass them down to build-script-impl if appropriate
   rather than relying on build-script-impl to control if these are
   built.

Once this lands, I think we are at a good enough place with
build-script until we get rid of build-script-impl in terms of high
value QoI that will imnprove productivity. Once build-script-impl is
destroyed, we can start paring back what build-script itself does.
2020-06-09 11:04:43 -07:00
David Zarzycki
4097282ae2 Disable build system test that assumes standalone build 2019-10-30 07:36:22 +02:00
Vedant Kumar
157cb2a654 [build-script] Forward --skip-local-build to build-script-impl
Otherwise, build-script-impl ignores --skip-local-build.
2019-10-28 12:20:38 -07:00
Mishal Shah
b93eeed850 Update llvm-dwarfdump to use -apple-types vs -debug-dump=apple_types 2018-05-02 09:16:22 -07:00
Mishal Shah
607d449ddc Update llvm-dwarfdump to use --debug-line vs -debug-dump=line 2018-05-02 09:12:32 -07:00
Kuba (Brecka) Mracek
fc7dbefcf8 Revert backtrace ban and start printing backtraces from the runtime again (#9528)
* Revert "[strip -ST] Disable runtime stack trace dumping on Darwin when asserts are disabled."
This reverts commit 6bc28ff1c9.
* Bring back important fixes from the revert of 6bc28ff1c9.
* Change swift::swift_reportError to only print the backtrace in assert builds (swift::warning prints backtrace always).
2017-05-12 15:46:35 -07:00
Michael Gottesman
6bc28ff1c9 [strip -ST] Disable runtime stack trace dumping on Darwin when asserts are disabled.
This commit disables runtime stack trace dumping via dladdr on Darwin when
asserts are disabled.

This stack trace dumping was added as a way to improve the ability to debug the
compiler for compiler developers. This is all well and good but having such a
feature always enabled prevents us from reducing the size of the swift standard
library by eliminating the swift nlist.

rdar://31372220
2017-05-04 16:46:26 -06:00
Ben Langmuir
8e4b9bba36 [lto test] Fix grep command that was accidentally inverted
The commit 8590e2cbbc accidentally inverted one of the bitcode grep
commands (adding -v), causing this to fail.

rdar://problem/30757144
2017-02-28 06:50:07 -08:00
practicalswift
8590e2cbbc [gardening] Use grep -q instead of comparing output with [ -n .. ] 2017-02-24 09:38:00 +01:00
practicalswift
cdf5559716 [gardening] Declare and assign separately to avoid masking return values. 2017-02-21 14:20:34 +01:00
Michael Gottesman
f86646a688 [gardening] Move the LTO build system lit tests folder to be under a new folder called BuildSystem.
This creates a nice stub for further sorts of lit based build system unit tests,
such as for making sure that debug info is emitted in the correct places.
2017-02-16 10:09:40 -08:00