21 Commits

Author SHA1 Message Date
Arthur Eubanks
258dd64978 [gn build] Port fd38366e4525 2024-04-04 17:05:32 +00:00
LLVM GN Syncbot
b1916599be [gn build] Port 6de5fcc74637 2024-02-26 22:17:16 +00:00
LLVM GN Syncbot
8f98c2c3b6 [gn build] Port 9058503d2690 2024-01-26 15:33:35 +00:00
Nico Weber
7f9e3bf062 [gn] port 07c9189fcc06 (DWARFLinker/Classic) 2024-01-09 10:53:32 -05:00
LLVM GN Syncbot
94e14b975b [gn build] Port 23c8d3825831 2023-08-21 08:42:39 +00:00
Nico Weber
6a75026a3c [gn] port 87fb0ea27eeb (bolt DIEBuilder) 2023-07-11 08:17:38 -04:00
LLVM GN Syncbot
ade8db573e [gn build] Port c9b1f062887d 2023-07-06 18:30:23 +00:00
LLVM GN Syncbot
d8f14365f0 [gn build] Port 98e2d630277e 2023-07-06 18:30:22 +00:00
LLVM GN Syncbot
df40f96a24 [gn build] Port 43dce27c06e4 2023-07-06 18:30:21 +00:00
LLVM GN Syncbot
de8ad9fcb7 [gn build] Port 38639a8159b2 2023-07-06 18:30:20 +00:00
LLVM GN Syncbot
6223b1e76d [gn build] Port f873029386dd 2023-06-16 10:20:24 +00:00
Nico Weber
2036fe7971 [gn] port 05634f7346a5 (bolt -> JITLink) 2023-06-15 09:22:39 -07:00
LLVM GN Syncbot
1f41942afe [gn build] Port 44268271f61e 2023-06-07 00:45:47 +00:00
Nico Weber
c9d6ae7809 [gn build] Port 3e3a926be8a9 2023-05-02 20:07:59 -04:00
Nico Weber
cd77f92789 [gn] Port f84ac48f1e83 (BOLT_TARGETS_TO_BUILD) 2023-04-21 14:08:19 -04:00
LLVM GN Syncbot
520a63893e [gn build] Port 17ed8f29287b 2022-12-22 21:20:59 +00:00
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
Nico Weber
9ddbcb0182 [gn build] Fix build of merge-fdata in a clean build dir
merge-fdata doesn't depend on any libraries except Support,
but it includes headers that require Attributes.inc to exist.
Add a dep that ensures that it does exist.
Corresponds to the intrinsics_gen dep in CMake.
2022-12-05 15:44:30 -05:00
Nico Weber
4ffc6f3b83 [bolt] Stop setting config.llvm_plugin_ext in lit.site.cfg.py.in
config.llvm_plugin_ext is used by lit to set the %pluginext
substitution. bolt's tests don't use %pluginext, so they don't
need to set config.llvm_plugin_ext.

Differential Revision: https://reviews.llvm.org/D138325
2022-11-22 20:29:14 -05:00
Nico Weber
edbfb829ba [gn build] Add missing dep from check-bolt on llvm-bat-dump 2022-11-21 20:48:46 -05:00
Nico Weber
6bb781fa9a [gn build] Add build files for //bolt
Adds build files for libraries, tools, and tests -- everything except
the runtime.

Doesn't hook up bolt in the main BUILD.gn file yet -- I want to verify
that it builds on Linux, macOS, Windows before doing that. (I've only
checked on macOS so far.)

`ninja check-bolt` passes on macOS with this.
(I locally bumped the deployment target to macOS 10.12 for that. bolt/ uses
std::mutex quite a bit, which requires 10.12.)

Differential Revision: https://reviews.llvm.org/D138355
2022-11-21 19:45:54 -05:00