summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/haskell/CROSSTOOL.windows
blob: ae167769581e756cb6293df07802d5f8d6e7a78c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
major_version: "local"
minor_version: ""

toolchain {
  toolchain_identifier: "ghc_windows_mingw64"
  abi_version: "local"
  abi_libc_version: "local"
  builtin_sysroot: ""
  compiler: "ghc-mingw-gcc"
  host_system_name: "local"
  needsPic: false
  target_libc: "mingw"
  target_cpu: "x64_windows"
  target_system_name: "local"

  artifact_name_pattern {
     category_name: 'executable'
     prefix: ''
     extension: '.exe'
  }

  tool_path { name: "ar" path: "mingw/bin/ar" }
  tool_path { name: "compat-ld" path: "mingw/bin/ld" }
  tool_path { name: "cpp" path: "mingw/bin/cpp" }
  tool_path { name: "dwp" path: "mingw/bin/dwp" }
  tool_path { name: "gcc" path: "mingw/bin/gcc" }
  tool_path { name: "gcov" path: "mingw/bin/gcov" }
  tool_path { name: "ld" path: "mingw/bin/ld" }
  tool_path { name: "nm" path: "mingw/bin/nm" }
  tool_path { name: "objcopy" path: "mingw/bin/objcopy" }
  tool_path { name: "objdump" path: "mingw/bin/objdump" }
  tool_path { name: "strip" path: "mingw/bin/strip" }
  cxx_builtin_include_directory: "mingw"
  cxx_flag: "-std=gnu++0x"

  # Needed to prevent Bazel from complaining about undeclared inclusions of
  # MingW headers.
  #
  # See: https://github.com/bazelbuild/bazel/issues/4605
  unfiltered_cxx_flag: "-no-canonical-prefixes"
  unfiltered_cxx_flag: "-fno-canonical-system-headers"

  linker_flag: "-lstdc++"
  objcopy_embed_flag: "-I"
  objcopy_embed_flag: "binary"
  feature { name: "targets_windows" implies: "copy_dynamic_libraries_to_binary" enabled: true }
  feature { name: "copy_dynamic_libraries_to_binary" }
  linking_mode_flags { mode: DYNAMIC }
}