Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Issue 2858873005: [infra] Roll clang to match the version used by Flutter (Closed)

Created:
3 years, 7 months ago by zra
Modified:
3 years, 7 months ago
Reviewers:
Bill Hesse, siva
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[infra] Roll clang to match the version used by Flutter Flutter uses the same clang toolchain as Fuchsia. This CL puts Dart on that toolchain, as well. This roll should entail no changes to glibc version requirements on Linux. The Fuchsia buildtools distribute clang-format with the toolchain rather than separately, so this CL introduces forwarding scripts that are copied to the right place under //buildtools. This CL sets the default for the number of workers in //tools/gn.py to 1, as the newer GN version fails occasionally when run concurrently with other invocations. As Flutter does, this CL uses the clang toolchain to build for Android. Thus, it is now possible to build for Android on MacOS. This change is a prerequisite for assembling the SDK in GN rather than with a python script: https://codereview.chromium.org/2848943003/ and will be nicer for making prebuilt SDKs for Fuchsia. Resubmitting this with the following fixes: 1. Rolls further forward to get past a GN bug 2. Fixes the Android build. 3. Style cleanups in gn.py Committed: https://github.com/dart-lang/sdk/commit/726732dd6b02aa4f8117707071c54004a7c6e815

Patch Set 1 #

Patch Set 2 : Fix for Windows #

Patch Set 3 : Fix Mac Android build #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -1856 lines) Patch
M DEPS View 7 chunks +16 lines, -121 lines 0 comments Download
M build/config/android/config.gni View 3 chunks +11 lines, -13 lines 0 comments Download
M build/config/compiler/BUILD.gn View 5 chunks +23 lines, -33 lines 0 comments Download
M build/toolchain/android/BUILD.gn View 1 chunk +12 lines, -2 lines 0 comments Download
M build/toolchain/linux/BUILD.gn View 2 chunks +2 lines, -2 lines 0 comments Download
M build/toolchain/mac/BUILD.gn View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A tools/android/VERSION_LINUX_NDK View 1 chunk +1 line, -0 lines 0 comments Download
A tools/android/VERSION_LINUX_SDK View 1 chunk +1 line, -0 lines 0 comments Download
A tools/android/VERSION_MACOSX_NDK View 1 chunk +1 line, -0 lines 0 comments Download
A tools/android/VERSION_MACOSX_SDK View 1 chunk +1 line, -0 lines 0 comments Download
A tools/android/download_android_tools.py View 1 chunk +104 lines, -0 lines 0 comments Download
M tools/build.py View 1 chunk +1 line, -1 line 0 comments Download
A tools/buildtools/linux64/clang-format View 1 chunk +20 lines, -0 lines 2 comments Download
A tools/buildtools/mac/clang-format View 1 chunk +20 lines, -0 lines 0 comments Download
A tools/buildtools/update.py View 1 chunk +88 lines, -0 lines 0 comments Download
A tools/buildtools/win/clang-format.exe.sha1 View 1 chunk +2 lines, -0 lines 0 comments Download
D tools/clang/scripts/update.py View 1 chunk +0 lines, -909 lines 0 comments Download
D tools/clang/scripts/update.sh View 1 chunk +0 lines, -724 lines 0 comments Download
M tools/gn.py View 1 21 chunks +44 lines, -47 lines 0 comments Download
M tools/ninja.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (5 generated)
zra
3 years, 7 months ago (2017-05-04 20:00:31 UTC) #2
zra
TBR Re-landing during off hours to avoid possible disruptions.
3 years, 7 months ago (2017-05-07 04:36:37 UTC) #3
zra
Committed patchset #3 (id:40001) manually as 726732dd6b02aa4f8117707071c54004a7c6e815 (presubmit successful).
3 years, 7 months ago (2017-05-07 04:45:07 UTC) #5
aam
https://codereview.chromium.org/2858873005/diff/40001/tools/buildtools/linux64/clang-format File tools/buildtools/linux64/clang-format (right): https://codereview.chromium.org/2858873005/diff/40001/tools/buildtools/linux64/clang-format#newcode12 tools/buildtools/linux64/clang-format:12: DART_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DART_ROOT here actually points to dart-sdk/sdk/buildtools ...
3 years, 7 months ago (2017-05-09 01:23:52 UTC) #7
aam
3 years, 7 months ago (2017-05-09 01:49:17 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2858873005/diff/40001/tools/buildtools/linux6...
File tools/buildtools/linux64/clang-format (right):

https://codereview.chromium.org/2858873005/diff/40001/tools/buildtools/linux6...
tools/buildtools/linux64/clang-format:1: #!/usr/bin/env python
When invoked via 'git cl format' this script won't be able to find python in the
environment PATH because PATH is reset by git_cl.py
https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/HEAD/git_c...

Easiest fix would be to do #!/usr/bin/python here instead.

Powered by Google App Engine
This is Rietveld 408576698