Skip to content

Commit 4dcb5c4

Browse files
committed
[gn build] restore build command removed in 9595a7f for platforms without prebuilts
1 parent fae16fc commit 4dcb5c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/utils/gn/get.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ def main():
4646
platform = get_platform()
4747
if not platform:
4848
print('no prebuilt binary for', sys.platform)
49+
print('build it yourself with:')
50+
print(' rm -rf /tmp/gn &&')
51+
print(' pushd /tmp && git clone https://gn.googlesource.com/gn &&')
52+
print(' cd gn && build/gen.py && ninja -C out gn && popd &&')
53+
print(' mkdir -p llvm/utils/gn/bin/mac-arm64 &&')
54+
print(' cp /tmp/gn/out/gn somewhere/on/PATH')
4955
return 1
5056
dirname = os.path.join(os.path.dirname(__file__), 'bin', platform)
5157
if not os.path.exists(dirname):

0 commit comments

Comments
 (0)