Skip to content

Commit 9222607

Browse files
authored
gn build: Add check-builtins target.
Tested on aarch64 Linux and x86_64 Linux. Reviewers: aeubanks, nico Reviewed By: aeubanks Pull Request: llvm#134482
1 parent d4c1642 commit 9222607

File tree

5 files changed

+626
-520
lines changed

5 files changed

+626
-520
lines changed

llvm/utils/gn/build/sync_source_lists_from_cmake.py

+6
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ def get_sources(source_re, text):
108108

109109
gn_cpp = get_sources(gn_cpp_re, open(gn_file).read())
110110
gn_cpp |= get_sources(gn_cpp_re2, open(gn_file).read())
111+
112+
sources_file = os.path.join(os.path.dirname(gn_file), "sources.gni")
113+
if os.path.exists(sources_file):
114+
gn_cpp |= get_sources(gn_cpp_re, open(sources_file).read())
115+
gn_cpp |= get_sources(gn_cpp_re2, open(sources_file).read())
116+
111117
cmake_cpp = get_sources(cmake_cpp_re, open(cmake_file).read())
112118

113119
if gn_cpp == cmake_cpp:

llvm/utils/gn/secondary/BUILD.gn

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ group("default") {
1010
"//compiler-rt",
1111
"//compiler-rt/include",
1212
"//compiler-rt/lib/scudo",
13+
"//compiler-rt/test/builtins",
1314
"//lld/test",
1415
"//lldb/test",
1516
"//llvm/test",

0 commit comments

Comments
 (0)