Skip to content

Commit 91e0db4

Browse files
committed
[Build System] Update the llvm projects path to be inside llvm-project dir
1 parent 5c53756 commit 91e0db4

File tree

1 file changed

+10
-0
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+10
-0
lines changed

utils/swift_build_support/swift_build_support/products/product.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ def product_source_name(cls):
3737
It provides a customization point for Product subclasses. It is set to
3838
the value of product_name() by default for this reason.
3939
"""
40+
41+
llvm_projects = ['clang',
42+
'clang-tools-extra',
43+
'compiler-rt',
44+
'libcxx',
45+
'lldb',
46+
'llvm']
47+
48+
if cls.product_name() in llvm_projects:
49+
return "llvm-project/{}".format(cls.product_name())
4050
return cls.product_name()
4151

4252
@classmethod

0 commit comments

Comments
 (0)