Skip to content

Commit dad3938

Browse files
Remove changes not related to this (probably a previous bad merge)
1 parent 05a4881 commit dad3938

File tree

6 files changed

+9
-40
lines changed

6 files changed

+9
-40
lines changed

libcxx/test/libcxx/transitive_includes/cxx03.csv

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,15 @@ atomic ratio
122122
atomic type_traits
123123
atomic version
124124
barrier atomic
125-
barrier cctype
126125
barrier climits
127126
barrier cmath
128127
barrier compare
129128
barrier concepts
130129
barrier cstddef
131130
barrier cstdint
132-
barrier cstdio
133131
barrier cstdlib
134132
barrier cstring
135133
barrier ctime
136-
barrier cwchar
137-
barrier cwctype
138134
barrier exception
139135
barrier initializer_list
140136
barrier iosfwd
@@ -2036,7 +2032,6 @@ stdexcept new
20362032
stdexcept type_traits
20372033
stdexcept typeinfo
20382034
stdexcept version
2039-
stop_token cstddef
20402035
stop_token iosfwd
20412036
stop_token version
20422037
streambuf algorithm

libcxx/test/libcxx/transitive_includes/cxx11.csv

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,15 @@ atomic ratio
122122
atomic type_traits
123123
atomic version
124124
barrier atomic
125-
barrier cctype
126125
barrier climits
127126
barrier cmath
128127
barrier compare
129128
barrier concepts
130129
barrier cstddef
131130
barrier cstdint
132-
barrier cstdio
133131
barrier cstdlib
134132
barrier cstring
135133
barrier ctime
136-
barrier cwchar
137-
barrier cwctype
138134
barrier exception
139135
barrier initializer_list
140136
barrier iosfwd
@@ -2036,7 +2032,6 @@ stdexcept new
20362032
stdexcept type_traits
20372033
stdexcept typeinfo
20382034
stdexcept version
2039-
stop_token cstddef
20402035
stop_token iosfwd
20412036
stop_token version
20422037
streambuf algorithm

libcxx/test/libcxx/transitive_includes/cxx14.csv

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,15 @@ atomic ratio
125125
atomic type_traits
126126
atomic version
127127
barrier atomic
128-
barrier cctype
129128
barrier climits
130129
barrier cmath
131130
barrier compare
132131
barrier concepts
133132
barrier cstddef
134133
barrier cstdint
135-
barrier cstdio
136134
barrier cstdlib
137135
barrier cstring
138136
barrier ctime
139-
barrier cwchar
140-
barrier cwctype
141137
barrier exception
142138
barrier initializer_list
143139
barrier iosfwd
@@ -2076,7 +2072,6 @@ stdexcept new
20762072
stdexcept type_traits
20772073
stdexcept typeinfo
20782074
stdexcept version
2079-
stop_token cstddef
20802075
stop_token iosfwd
20812076
stop_token version
20822077
streambuf algorithm

libcxx/test/libcxx/transitive_includes/cxx17.csv

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,15 @@ atomic ratio
122122
atomic type_traits
123123
atomic version
124124
barrier atomic
125-
barrier cctype
126125
barrier climits
127126
barrier cmath
128127
barrier compare
129128
barrier concepts
130129
barrier cstddef
131130
barrier cstdint
132-
barrier cstdio
133131
barrier cstdlib
134132
barrier cstring
135133
barrier ctime
136-
barrier cwchar
137-
barrier cwctype
138134
barrier exception
139135
barrier initializer_list
140136
barrier iosfwd
@@ -2089,7 +2085,6 @@ stdexcept new
20892085
stdexcept type_traits
20902086
stdexcept typeinfo
20912087
stdexcept version
2092-
stop_token cstddef
20932088
stop_token iosfwd
20942089
stop_token version
20952090
streambuf algorithm

llvm/utils/gn/build/sync_source_lists_from_cmake.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ def git_out(args):
6161
gn_files = git_out(["ls-files", "*BUILD.gn"]).splitlines()
6262

6363
# Matches e.g. | "foo.cpp",|, captures |foo| in group 1.
64-
gn_cpp_re = re.compile(r'^\s*"([^$"]+\.(?:cpp|c|h|S))",$', re.MULTILINE)
64+
gn_cpp_re = re.compile(r'^\s*"([^$"]+\.(?:cpp|c|h|mm|S))",$', re.MULTILINE)
6565
# Matches e.g. | bar_sources = [ "foo.cpp" ]|, captures |foo| in group 1.
6666
gn_cpp_re2 = re.compile(
67-
r'^\s*(?:.*_)?sources \+?= \[ "([^$"]+\.(?:cpp|c|h|S))" ]$', re.MULTILINE
67+
r'^\s*(?:.*_)?sources \+?= \[ "([^$"]+\.(?:cpp|c|h|mm|S))" ]$', re.MULTILINE
6868
)
6969
# Matches e.g. | foo.cpp|, captures |foo| in group 1.
70-
cmake_cpp_re = re.compile(r"^\s*([A-Za-z_0-9./-]+\.(?:cpp|c|h|S))$", re.MULTILINE)
70+
cmake_cpp_re = re.compile(r"^\s*([A-Za-z_0-9./-]+\.(?:cpp|c|h|mm|S))$", re.MULTILINE)
7171

7272
changes_by_rev = defaultdict(lambda: defaultdict(lambda: defaultdict(list)))
7373

@@ -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/build/toolchain/BUILD.gn

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,6 @@ template("unix_toolchain") {
7171
default_output_dir = "{{root_out_dir}}/lib"
7272
}
7373

74-
if (current_os == "ios" || current_os == "mac") {
75-
# gn < 1693 (e214b5d35898) doesn't support |frameworks|, requiring
76-
# frameworks to be listed in |libs|, but gn >= 1808 (3028c6a426a4) forbids
77-
# frameworks from appearing in |libs|. This assertion provides a helpful
78-
# cue to upgrade, and is much more user-friendly than the failure that
79-
# occurs when an older gn encounters |frameworks|.
80-
#
81-
# gn_version doesn’t actually exist in gn < 1709 (52cb644a3fb4), and
82-
# defined(gn_version) doesn't actually work as expected
83-
# (https://crbug.com/gn/183), so 1709 is the true minimum enforced by
84-
# this construct, and if gn_version is not available, this line will still
85-
# be blamed, making the resolution somewhat discoverable.
86-
assert(gn_version >= 1693,
87-
"Your GN is too old! " +
88-
"Update it, perhaps by running llvm/utils/gn/get.py")
89-
}
90-
9174
# Make these apply to all tools below.
9275
lib_switch = "-l"
9376
lib_dir_switch = "-L"

0 commit comments

Comments
 (0)