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

Unified Diff: mojo/go/go.py

Issue 1276653003: Update version of Go to 1.5 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: go.mobile no longer needed Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/go/go.py
diff --git a/mojo/go/go.py b/mojo/go/go.py
index 0b84e685dd6fecfd3ec0bd9f7c0c21ff4ed91791..a0f93f213e2bda88fdcff9351885d96b56f5c7fd 100755
--- a/mojo/go/go.py
+++ b/mojo/go/go.py
@@ -78,6 +78,8 @@ def main():
ndk_cc = os.path.join(ndk_path, 'toolchains', NDK_TOOLCHAIN,
'prebuilt', arch, 'bin', 'arm-linux-androideabi-gcc')
sysroot = os.path.join(ndk_path, 'platforms', NDK_PLATFORM, 'arch-arm')
+ env['CGO_CFLAGS'] += ' --sysroot %s' % sysroot
+ env['CGO_LDFLAGS'] += ' --sysroot %s' % sysroot
env['CC'] = '%s --sysroot %s' % (ndk_cc, sysroot)
call_result = subprocess.call([go_tool] + go_options, env=env)
« examples/go/echo_server.go ('K') | « examples/go/http_server.go ('k') | mojo/go/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698