Commit Graph

15 Commits

Author SHA1 Message Date
Ross Bayer
e793fcf052 [Build System: build-script] Moved SWIFT_SOURCE_ROOT, SWIFT_BUILD_ROOT and SWIFT_REPO_NAME along with other project path constants into a new build_swift.constants module. 2020-02-11 12:46:03 -08:00
Ross Bayer
29a7edded6 [Python] Update the .flake8 config file to lint all existing Python scripts.
The utils/dev-scripts/at-to-filelist, utils/dev-scripts/split-cmdline and utils/build-parser-lib scripts needed to be reformatted with the black tool to agree with the linter.
2020-02-06 15:39:25 -08:00
Ross Bayer
a6dab52f31 [Build System: build-script] Adds a new xcrun module to build_swift which replaces the existing module from swift_build_support.
This new module uses the build_swift.shell.ExecutableWrapper API to create a wrapper class around 'xcrun'. The wrapper class is instantiated and exposed under the name build_swift.wrappers.xcrun.
2020-01-19 17:19:38 -08:00
Ross Bayer
ff60592ac3 [Build System: build-script] Re-organized the build_swift module to maintain a similar nested structure to swift_build_support and other Python scripting that already exists in the project. 2020-01-15 18:05:59 -08:00
Argyrios Kyrtzidis
0c8dd88953 [utils/build-parser-lib] Add capability for cross-compiling the parser library for embedded platforms 2019-10-02 10:35:35 -07:00
Argyrios Kyrtzidis
f0449118a8 [utils/build-parser-lib] Set DLLVM_ENABLE_LIBXML2=FALSE for parser library build
This is not necessary and causes CMake error in certain builds
2019-09-11 20:35:47 -07:00
Argyrios Kyrtzidis
df721bd67f [CMake] Fix linker issue when doing a parser-lib only build 2019-05-29 11:28:25 -07:00
Argyrios Kyrtzidis
fbdcd6e737 [utils/build-parser-lib] Provide an option for list of architectures to build the parser library for 2019-05-23 14:58:24 -07:00
Daniel Rodríguez Troitiño
a92eff843e [build-script] Move call_without_sleeping into the shell module 2019-04-04 15:21:43 -07:00
Argyrios Kyrtzidis
73bc263d91 [utils/build-parser-lib] Avoid needing to have cmark repo present 2019-03-03 17:27:22 -08:00
Argyrios Kyrtzidis
746f09d6f4 [utils/build-parser-lib] Make sure to find 'ninja' properly, don't depend on it being in the PATH 2019-02-26 10:03:02 -08:00
Argyrios Kyrtzidis
bdc2dfbb75 [utils/build-parser-lib] Also disable CMARK_TESTS 2019-02-25 14:06:51 -08:00
Argyrios Kyrtzidis
4a22e72022 [utils/build-parser-lib] Also disable SWIFT_INCLUDE_TESTS 2019-02-25 13:56:00 -08:00
Argyrios Kyrtzidis
49b2e29ed4 [utils/build-parser-lib] Ignore tests configuration and show the defaults in the help output 2019-02-25 12:12:58 -08:00
Argyrios Kyrtzidis
363da6162f [utils] Add a utility script for building only the syntax parser library as fast as possible
To achieve this the script does a single unified CMake configuration for
llvm/clang/swift and builds only the parser library target.
This mechanism is fundamentally different from build-script, which builds llvm/clang
in a separate build directory than swift.

Even though this bypasses build-script, it does share some underlying helper
utilities from the python infrastructure.

This utility also provides capability to gather profile data and build the parser
library with PGO optimization enabled.
2019-02-22 14:02:27 -08:00