Skip to content

Commit

Permalink
try to compile tor using tsan
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Mar 22, 2023
1 parent ea2a628 commit 1433734
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions internal/cmd/buildtool/linuxcdeps.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,29 @@ func linuxCdepsBuildMain(name string, deps buildtoolmodel.Dependencies) {
"-fPIC", // makes more sense than -fPIE given that we're building a library
"-fsanitize=bounds",
"-fsanitize-undefined-trap-on-error",
"-fsanitize=thread",
"-O2",
}
destdir := runtimex.Try1(filepath.Abs(filepath.Join( // must be absolute
"internal", "libtor", "linux", runtime.GOARCH,
)))
globalEnv := &cBuildEnv{
ANDROID_HOME: "",
ANDROID_NDK_ROOT: "",
AR: "",
BINPATH: "",
CC: "",
CFLAGS: cflags,
CONFIGURE_HOST: "",
DESTDIR: destdir,
CXX: "",
CXXFLAGS: cflags,
GOARCH: "",
GOARM: "",
LD: "",
LDFLAGS: []string{},
ANDROID_HOME: "",
ANDROID_NDK_ROOT: "",
AR: "",
BINPATH: "",
CC: "",
CFLAGS: cflags,
CONFIGURE_HOST: "",
DESTDIR: destdir,
CXX: "",
CXXFLAGS: cflags,
GOARCH: "",
GOARM: "",
LD: "",
LDFLAGS: []string{
"-fsanitize=thread",
},
OPENSSL_API_DEFINE: "",
OPENSSL_COMPILER: "linux-x86_64",
RANLIB: "",
Expand Down

0 comments on commit 1433734

Please sign in to comment.