Skip to content

Commit e1d0ea2

Browse files
authored
Merge pull request #33616 from dcci/the-piper-at-the-gates-of-dawn
[Package] Fix passing -gline-tables-only when building.
2 parents d5731c5 + b9c899a commit e1d0ea2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

utils/build-presets.ini

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,10 +1234,15 @@ verbose-build
12341234
build-ninja
12351235
build-swift-stdlib-unittest-extra
12361236

1237-
# When producing a package, don't copy the Swift Resource/ directory.
1238-
# This is mainly a space optimization.
1237+
# When building for an Xcode toolchain, don't copy the Swift Resource/ directory
1238+
# into the LLDB.framework. LLDB.framework will be installed alongside a Swift
1239+
# compiler, so LLDB should use its resource directory directly.
1240+
# Also, to reduce the size of the final toolchain, limit debug info to be
1241+
# line-tables only.
12391242
extra-cmake-options=
12401243
-DLLDB_FRAMEWORK_COPY_SWIFT_RESOURCES=0
1244+
-DCMAKE_C_FLAGS="-gline-tables-only"
1245+
-DCMAKE_CXX_FLAGS="-gline-tables-only"
12411246

12421247
install-llvm
12431248
install-swift
@@ -1372,10 +1377,6 @@ skip-test-swiftsyntax
13721377
skip-test-skstresstester
13731378
skip-test-swiftevolve
13741379

1375-
extra-cmake-options=
1376-
-DCMAKE_C_FLAGS="-gline-tables-only"
1377-
-DCMAKE_CXX_FLAGS="-gline-tables-only"
1378-
13791380
# macOS package with out test
13801381
[preset: buildbot_osx_package,no_test]
13811382
mixin-preset=

0 commit comments

Comments
 (0)