From ec451641dfb596ed53e874529de1da073f02db01 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 27 Apr 2011 23:44:42 -0400 Subject: [PATCH] Update the Go compiler version to c5c62aeb6267 release/release.r56/weekly.2011-03-07.1 * This also switches to the 6g compiler for x64 support. * Minor changes for new API compatibility --- build.py | 10 +++++----- src/server.go | 2 +- src/tv_rename.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.py b/build.py index df3fcef..1c3f8e4 100755 --- a/build.py +++ b/build.py @@ -59,11 +59,11 @@ RESOURCES_CLOSURE = [ PRODUCT_NAME = 'armadillo' # The Golang version (hg id). -BACK_END_COMPILER_VERSION = 'a7800e20064a release/release.2010-11-10' +BACK_END_COMPILER_VERSION = 'c5c62aeb6267 release/release.r56/weekly.2011-03-07.1' -COMPILER = '8g' -LINKER = '8l' -O_EXTENSION = '8' +COMPILER = '6g' +LINKER = '6l' +O_EXTENSION = '6' def _ObjFileName(gofile): gofile = os.path.basename(gofile) @@ -93,7 +93,7 @@ def _CompileBackEnd(): # Link objects = map(_ObjFileName, SOURCES) - args = [ LINKER, '-o', os.path.join(PROD_PATH, PRODUCT_NAME), 'main.8' ] + args = [ LINKER, '-o', os.path.join(PROD_PATH, PRODUCT_NAME), 'main.' + O_EXTENSION ] print ' ' + ' ' .join(args) handle = subprocess.Popen(args, stdout = sys.stdout, stderr = sys.stderr) handle.wait() diff --git a/src/server.go b/src/server.go index c1f698d..8e0a7fb 100644 --- a/src/server.go +++ b/src/server.go @@ -133,7 +133,7 @@ func performProxy(url *http.URL, response http.ResponseWriter, origRequest *http return err } var proxyResponse *http.Response - proxyResponse, err = client.Read() + proxyResponse, err = client.Read(&request) if err != nil && err != http.ErrPersistEOF { return err } diff --git a/src/tv_rename.go b/src/tv_rename.go index b331f7a..4b8b23c 100644 --- a/src/tv_rename.go +++ b/src/tv_rename.go @@ -134,7 +134,7 @@ func performLookup(urlString string) (*http.Response, os.Error) { if err != nil { return nil, err } - return client.Read() + return client.Read(&request) } // Parses the HTTP response from performLookup(). -- 2.43.5