Update the Go compiler version to c5c62aeb6267 release/release.r56/weekly.2011-03...
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 28 Apr 2011 03:44:42 +0000 (23:44 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 28 Apr 2011 03:44:42 +0000 (23:44 -0400)
* This also switches to the 6g compiler for x64 support.
* Minor changes for new API compatibility

build.py
src/server.go
src/tv_rename.go

index df3fcefeebaa155d6f092aa4a48d42918c461e08..1c3f8e4c833551dc19f7c3972d4a94c26fb1cfea 100755 (executable)
--- 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()
index c1f698dd14ddf2c5a8d1febfd92e7684e965918b..8e0a7fbac3c3f62392baca5f173e6581e03b9345 100644 (file)
@@ -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
   }
index b331f7aed9e234e301b4ca39a29c93223bcd1bf6..4b8b23ccf28ff5f5a0a1de87b7a051a26f22230a 100644 (file)
@@ -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().