From 78ffeea24ea5725d03b6526804bc2ca1bc1e4084 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Thu, 20 Oct 2016 18:46:48 -0700 Subject: [PATCH] Fix gofmt problems and add gofmt to preupload checks Test: gofmt -d . Test: , repo upload Change-Id: I5ca0676461616f166a842d307c600dc50a50ec48 --- PREUPLOAD.cfg | 2 ++ cc/sanitize.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 PREUPLOAD.cfg diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg new file mode 100644 index 000000000..928ca03c8 --- /dev/null +++ b/PREUPLOAD.cfg @@ -0,0 +1,2 @@ +[Builtin Hooks] +gofmt = true diff --git a/cc/sanitize.go b/cc/sanitize.go index 2676373f0..ff0d772e7 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -25,9 +25,9 @@ import ( ) const ( - asanCflags = "-fno-omit-frame-pointer" + asanCflags = "-fno-omit-frame-pointer" asanLdflags = "-Wl,-u,__asan_preinit" - asanLibs = "libasan" + asanLibs = "libasan" ) type sanitizerType int