type ^
  tsan_go.cpp ^
  ..\rtl\tsan_interface_atomic.cpp ^
  ..\rtl\tsan_flags.cpp ^
  ..\rtl\tsan_md5.cpp ^
  ..\rtl\tsan_report.cpp ^
  ..\rtl\tsan_rtl.cpp ^
  ..\rtl\tsan_rtl_access.cpp ^
  ..\rtl\tsan_rtl_mutex.cpp ^
  ..\rtl\tsan_rtl_report.cpp ^
  ..\rtl\tsan_rtl_thread.cpp ^
  ..\rtl\tsan_rtl_proc.cpp ^
  ..\rtl\tsan_suppressions.cpp ^
  ..\rtl\tsan_sync.cpp ^
  ..\rtl\tsan_stack_trace.cpp ^
  ..\rtl\tsan_vector_clock.cpp ^
  ..\..\sanitizer_common\sanitizer_allocator.cpp ^
  ..\..\sanitizer_common\sanitizer_common.cpp ^
  ..\..\sanitizer_common\sanitizer_flags.cpp ^
  ..\..\sanitizer_common\sanitizer_stacktrace.cpp ^
  ..\..\sanitizer_common\sanitizer_libc.cpp ^
  ..\..\sanitizer_common\sanitizer_printf.cpp ^
  ..\..\sanitizer_common\sanitizer_suppressions.cpp ^
  ..\..\sanitizer_common\sanitizer_thread_registry.cpp ^
  ..\rtl\tsan_platform_windows.cpp ^
  ..\..\sanitizer_common\sanitizer_win.cpp ^
  ..\..\sanitizer_common\sanitizer_deadlock_detector1.cpp ^
  ..\..\sanitizer_common\sanitizer_stack_store.cpp ^
  ..\..\sanitizer_common\sanitizer_stackdepot.cpp ^
  ..\..\sanitizer_common\sanitizer_flag_parser.cpp ^
  ..\..\sanitizer_common\sanitizer_symbolizer.cpp ^
  ..\..\sanitizer_common\sanitizer_termination.cpp ^
  ..\..\sanitizer_common\sanitizer_file.cpp ^
  ..\..\sanitizer_common\sanitizer_symbolizer_report.cpp ^
  ..\..\sanitizer_common\sanitizer_mutex.cpp ^
  ..\rtl\tsan_external.cpp ^
  > gotsan.cpp

gcc ^
  -c ^
  -o race_windows_amd64.syso ^
  gotsan.cpp ^
  -I..\rtl ^
  -I..\.. ^
  -I..\..\sanitizer_common ^
  -I..\..\..\include ^
  -m64 ^
  -Wall ^
  -fno-exceptions ^
  -fno-rtti ^
  -DSANITIZER_GO=1 ^
  -DWINVER=0x0600 ^
  -D_WIN32_WINNT=0x0600 ^
  -DGetProcessMemoryInfo=K32GetProcessMemoryInfo ^
  -Wno-error=attributes ^
  -Wno-attributes ^
  -Wno-format ^
  -Wno-maybe-uninitialized ^
  -DSANITIZER_DEBUG=0 ^
  -O3 ^
  -fomit-frame-pointer ^
  -msse4.2 ^
  -std=c++14
