Skip to content

Commit a20050a

Browse files
committed
[build-script] Add Product for libc++
In a non-legacy-impl world, this is needed to trigger building/installing libc++. https://bugs.swift.org/browse/SR-9861
1 parent 4ee879e commit a20050a

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

utils/build-script

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,7 @@ class BuildScriptInvocation(object):
841841
product_classes = []
842842
product_classes.append(products.CMark)
843843
product_classes.append(products.LLVM)
844+
product_classes.append(products.LibCXX)
844845
if self.args.build_libicu:
845846
product_classes.append(products.LibICU)
846847
product_classes.append(products.Swift)

utils/swift_build_support/swift_build_support/products/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from .cmark import CMark
1414
from .foundation import Foundation
1515
from .libdispatch import LibDispatch
16+
from .libcxx import LibCXX
1617
from .libicu import LibICU
1718
from .llbuild import LLBuild
1819
from .lldb import LLDB
@@ -29,6 +30,7 @@
2930
'Ninja',
3031
'Foundation',
3132
'LibDispatch',
33+
'LibCXX',
3234
'LibICU',
3335
'LLBuild',
3436
'LLDB',
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# swift_build_support/products/libcxx.py -------------------------*- python -*-
2+
#
3+
# This source file is part of the Swift.org open source project
4+
#
5+
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
6+
# Licensed under Apache License v2.0 with Runtime Library Exception
7+
#
8+
# See https://swift.org/LICENSE.txt for license information
9+
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
#
11+
# ----------------------------------------------------------------------------
12+
13+
from . import product
14+
15+
16+
class LibCXX(product.Product):
17+
pass

0 commit comments

Comments
 (0)