aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2020-05-13 11:56:28 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-13 13:05:41 +0200
commit88a97d1a7aaeeb0122cce296c696ad7927ed052e (patch)
tree4b9babbdfb6cf67dc277d6e1c7d575fca64e22cf /pkg/csource
parentad606d93b28413409675d6a93631e15ea68b0ac2 (diff)
Get rid of "Cross" in variable names
Renamed Target.BrokenCrossCompiler to Target.BrokenCompiler and Target.CrossCFlags to Target.CFlags "Everything in Target is about Cross now." Signed-off-by: Alexander Potapenko <glider@google.com>
Diffstat (limited to 'pkg/csource')
-rw-r--r--pkg/csource/build.go2
-rw-r--r--pkg/csource/csource_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/csource/build.go b/pkg/csource/build.go
index 1269987e5..13633382e 100644
--- a/pkg/csource/build.go
+++ b/pkg/csource/build.go
@@ -54,7 +54,7 @@ func build(target *prog.Target, src []byte, file string, warn bool) (string, err
} else {
flags = append(flags, file)
}
- flags = append(flags, sysTarget.CrossCFlags...)
+ flags = append(flags, sysTarget.CFlags...)
if sysTarget.PtrSize == 4 {
// We do generate uint64's for syscall arguments that overflow longs on 32-bit archs.
flags = append(flags, "-Wno-overflow")
diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go
index f8248499e..61b6bcf31 100644
--- a/pkg/csource/csource_test.go
+++ b/pkg/csource/csource_test.go
@@ -32,7 +32,7 @@ func TestGenerate(t *testing.T) {
continue
}
t.Run(target.OS+"/"+target.Arch, func(t *testing.T) {
- if err := sysTarget.BrokenCrossCompiler; err != "" {
+ if err := sysTarget.BrokenCompiler; err != "" {
t.Skipf("target compiler is broken: %v", err)
}
full := !checked[target.OS]