11 Commits

Author SHA1 Message Date
Nico Weber
2aa998d22f [gn] Add explicit deps on TargetParser
This diff was generated by the following script:

    #!/usr/bin/env python3
    import os, subprocess
    r = subprocess.run('git show --pretty='' --name-only f09cf34d00'.split(),
                       stdout=subprocess.PIPE, text=True)
    for line in r.stdout.splitlines():
      if not line.endswith('CMakeLists.txt'): continue
      gn = 'llvm/utils/gn/secondary/' + os.path.dirname(line) + '/BUILD.gn'
      if not os.path.exists(gn): continue
      with open(gn) as f:
        contents = f.read()
      if contents.count('"//llvm/lib/Support",') == 1:
        contents = contents.replace(
            '"//llvm/lib/Support",',
            '"//llvm/lib/Support", "//llvm/lib/TargetParser",')
      elif contents.count(' deps = [') == 1:
        contents = contents.replace(
            ' deps = [',
            ' deps = [ "//llvm/lib/TargetParser",')
      else:
        print('needs manual fixup:', gn)
        continue
      with open(gn, 'w') as f:
        f.write(contents)

I then manually fixed up the BUILD.gn files for Support (should not depend on
TargetParser) and TargetParser (should depend on Support) and ran `gn format`
on all touched files.
2022-12-20 10:09:43 -05:00
LLVM GN Syncbot
89fd81d6b3 [gn build] Port a3be778ed09b 2022-10-25 14:17:26 +00:00
LLVM GN Syncbot
e04f8c81d5 [gn build] Port 7bece0f03bf6 2022-08-11 06:28:14 +00:00
LLVM GN Syncbot
6947945080 [gn build] Port 1f49714d3e19 2022-05-17 19:47:10 +00:00
LLVM GN Syncbot
6f803caa6d [gn build] Port 1188faa7ab4b 2022-05-17 19:47:09 +00:00
LLVM GN Syncbot
ee0e00b198 [gn build] Port 7b73de9ec2b1 2022-05-09 23:05:57 +00:00
LLVM GN Syncbot
aa69cb7695 [gn build] Port 5de0a3e9da72 2022-05-02 15:51:27 +00:00
LLVM GN Syncbot
01f76917cc [gn build] Port e6c84f82b875 2022-03-21 20:44:15 +00:00
LLVM GN Syncbot
56a25a95d4 [gn build] Port 22077627ae20 2022-03-16 23:23:57 +00:00
Nico Weber
cf838ebfa5 [gn build] Reformat all files
Ran `git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`.
No behavior change.
2021-11-05 10:51:04 -04:00
Peter Collingbourne
9449f441fc gn build: Add support for building LLDB on Linux.
On Linux, LLDB depends on lldb-server at runtime (on Mac, the dependency on
a debug server presumably comes via the system debugserver), so I added it
to deps.

Differential Revision: https://reviews.llvm.org/D109463
2021-09-08 19:33:51 -07:00