Skip to content

Commit 73decbf

Browse files
committed
---
yaml --- r: 346989 b: refs/heads/master c: 606a125 h: refs/heads/master i: 346987: 46e4ab0
1 parent 9036a1d commit 73decbf

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f73e53fb53b7c0656728acc53cc913164eaf0612
2+
refs/heads/master: 606a1253fe2b677c2888f88a98c014e40b1c6e20
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/AST/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ if(SWIFT_BUILD_ONLY_SYNTAXPARSERLIB)
118118
swiftBasic
119119
swiftSyntax
120120
${clangBasicDep})
121+
target_compile_definitions(swiftAST PRIVATE
122+
SWIFT_BUILD_ONLY_SYNTAXPARSERLIB=1)
121123
else()
122124
target_link_libraries(swiftAST PRIVATE
123125
swiftBasic

trunk/utils/build-parser-lib

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class Builder(object):
114114
cmake_args += ['-DSWIFT_BUILD_REMOTE_MIRROR=FALSE', '-DSWIFT_BUILD_DYNAMIC_STDLIB=FALSE',
115115
'-DSWIFT_BUILD_STATIC_STDLIB=FALSE', '-DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY=FALSE',
116116
'-DSWIFT_BUILD_STATIC_SDK_OVERLAY=FALSE']
117+
cmake_args += ['-DLLVM_INCLUDE_TESTS=FALSE', '-DCLANG_INCLUDE_TESTS=FALSE']
117118
cmake_args += [os.path.join(SWIFT_SOURCE_ROOT, 'llvm')]
118119
self.call(cmake_args)
119120

@@ -185,6 +186,11 @@ def main():
185186
store_int = optbuilder.actions.store_int
186187
store_path = optbuilder.actions.store_path
187188

189+
default_profile_input = os.path.join(SWIFT_SOURCE_ROOT, "swift", "utils", "parser-lib", "profile-input.swift")
190+
default_jobs = multiprocessing.cpu_count()
191+
default_build_dir = os.path.join(SWIFT_BUILD_ROOT, 'parser-lib')
192+
default_install_prefix = defaults.DARWIN_INSTALL_PREFIX if isMac else UNIX_INSTALL_PREFIX
193+
188194
option('--release', store_true,
189195
help='build in release mode')
190196
option('--lto', store('lto_type'),
@@ -202,28 +208,27 @@ def main():
202208
'Options: frontend, ir. If no optional arg is provided, ir is '
203209
'chosen by default')
204210
option('--profile-input', store_path,
205-
default=os.path.join(SWIFT_SOURCE_ROOT, "swift", "utils", "parser-lib", "profile-input.swift"),
206-
help='the source file to use for PGO profiling input')
211+
default=default_profile_input,
212+
help='the source file to use for PGO profiling input (default = %s)' % default_profile_input)
207213
option('--no-assertions', store_true,
208214
help='disable assertions')
209215
option(['-v', '--verbose'], store_true,
210216
help='print the commands executed during the build')
211217
option('--dry-run', store_true,
212218
help='print the commands to execute but not actually execute them')
213219
option(['-j', '--jobs'], store_int('build_jobs'),
214-
default=multiprocessing.cpu_count(),
215-
help='the number of parallel build jobs to use')
220+
default=default_jobs,
221+
help='the number of parallel build jobs to use (default = %s)' % default_jobs)
216222
option('--build-dir', store_path,
217-
default=os.path.join(SWIFT_BUILD_ROOT, 'parser-lib'),
218-
help='the path where the build products will be placed. '
219-
'If none is specified it will use <workspace>/build/parser-lib')
223+
default=default_build_dir,
224+
help='the path where the build products will be placed. (default = %s)' % default_build_dir)
220225
option('--install-symroot', store_path,
221226
help='the path to install debug symbols into')
222227
option('--install-destdir', store_path,
223228
help='the path to use as the filesystem root for the installation')
224229
option('--install-prefix', store,
225-
default = defaults.DARWIN_INSTALL_PREFIX if isMac else UNIX_INSTALL_PREFIX,
226-
help='the install prefix to use')
230+
default = default_install_prefix,
231+
help='the install prefix to use (default = %s)' % default_install_prefix)
227232
option('--version', store,
228233
help='version string to use for the parser library')
229234

0 commit comments

Comments
 (0)