[gn build] restore build command removed in 9595a7ff55b6 for platforms without prebuilts
authorNico Weber <thakis@chromium.org>
Wed, 27 Jan 2021 00:19:19 +0000 (19:19 -0500)
committerNico Weber <thakis@chromium.org>
Wed, 27 Jan 2021 00:19:31 +0000 (19:19 -0500)
llvm/utils/gn/get.py

index bb185c1..e72cbf8 100755 (executable)
@@ -46,6 +46,12 @@ def main():
     platform = get_platform()
     if not platform:
         print('no prebuilt binary for', sys.platform)
+        print('build it yourself with:')
+        print('  rm -rf /tmp/gn &&')
+        print('  pushd /tmp && git clone https://gn.googlesource.com/gn &&')
+        print('  cd gn && build/gen.py && ninja -C out gn && popd &&')
+        print('  mkdir -p llvm/utils/gn/bin/mac-arm64 &&')
+        print('  cp /tmp/gn/out/gn somewhere/on/PATH')
         return 1
     dirname = os.path.join(os.path.dirname(__file__), 'bin', platform)
     if not os.path.exists(dirname):