config 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # vim: filetype=yaml sw=2
  2. filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
  3. version: '[% c("input_file_var/rust_version") %]'
  4. # Those values can be changed from the input_files section of other
  5. # projects. See bug 32436.
  6. input_file_var:
  7. rust_version: 1.43.0
  8. prev_version: 1.42.0
  9. var:
  10. prev_version: '[% c("input_file_var/prev_version") %]'
  11. container:
  12. use_container: 1
  13. targets:
  14. android:
  15. var:
  16. arch_deps:
  17. - libssl-dev
  18. - pkg-config
  19. - zlib1g-dev
  20. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=[% c("var/cross_prefix") %] --set=target.[% c("var/cross_prefix") %].cc=[% c("var/CC") %] --set=target.[% c("var/cross_prefix") %].ar=[% c("var/cross_prefix") %]-ar
  21. android-armv7:
  22. var:
  23. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=thumbv7neon-linux-androideabi --set=target.thumbv7neon-linux-androideabi.cc=[% c("var/CC") %] --set=target.thumbv7neon-linux-androideabi.ar=[% c("var/cross_prefix") %]-ar
  24. linux:
  25. var:
  26. deps:
  27. - libc6-dev-i386
  28. - lib32stdc++6
  29. - build-essential
  30. - python
  31. - automake
  32. - libssl-dev
  33. - pkg-config
  34. - hardening-wrapper
  35. # We use
  36. # `--enable-local-rust` to avoid downloading the required compiler during
  37. # build time
  38. #
  39. # `--enable-vendor` to avoid downloading crates during build time and just
  40. # use the ones which are shipped with the source
  41. #
  42. # `--enable-extended` to build not only rustc but cargo as well
  43. #
  44. # `--enable-llvm-static-stdccp` to take a libstdc++ on Wheezy into account
  45. # which is too old and if used gives undefined reference errors
  46. #
  47. # `--release-channel=stable` to just include stable features in the
  48. # compiler
  49. #
  50. # `--sysconfdir=etc` to avoid install failures as |make install| wants to
  51. # write to /etc otherwise
  52. #
  53. # the `target` triple to explicitly specify the architecture and platform
  54. # for the compiler/std lib. Ideally, it should not be needed unless one is
  55. # cross-compiling, but compiling `alloc_jemalloc` fails without that in a
  56. # 32bit container. "--host=x86_64-unknown-linux-gnu" is used in its
  57. # configure script in this case.
  58. # `--set=` to explicitly specify the C compiler. We need to compile the
  59. # bundled LLVM and it wants to use `cc`. However, we don't have that in
  60. # our compiled GCC resulting in weird errors due to C and C++ compiler
  61. # version mismatch. We avoid that with this configure option. We need to
  62. # build our own GCC in the first place as 4.7.2 is too old to get all the
  63. # Rust pieces compiled.
  64. configure_opt: --enable-local-rust --enable-vendor --enable-extended --enable-llvm-static-stdcpp --release-channel=stable --sysconfdir=etc --target=x86_64-unknown-linux-gnu,i686-unknown-linux-gnu --set=target.x86_64-unknown-linux-gnu.cc=gcc --set=target.i686-unknown-linux-gnu.cc=gcc
  65. osx-x86_64:
  66. var:
  67. arch_deps:
  68. - libssl-dev
  69. - pkg-config
  70. - zlib1g-dev
  71. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=x86_64-apple-darwin --set=target.x86_64-apple-darwin.cc=x86_64-apple-darwin-clang
  72. windows:
  73. var:
  74. arch_deps:
  75. - libssl-dev
  76. - pkg-config
  77. - zlib1g-dev
  78. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=[% c("arch") %]-pc-windows-gnu
  79. input_files:
  80. - project: container-image
  81. - project: cmake
  82. name: cmake
  83. - project: '[% c("var/compiler") %]'
  84. name: '[% c("var/compiler") %]'
  85. - URL: 'https://static.rust-lang.org/dist/rustc-[% c("version") %]-src.tar.gz'
  86. name: rust
  87. sig_ext: asc
  88. file_gpg_id: 1
  89. gpg_keyring: rust.gpg
  90. - URL: 'https://static.rust-lang.org/dist/rust-[% c("var/prev_version") %]-x86_64-unknown-linux-gnu.tar.xz'
  91. name: prev_rust
  92. sig_ext: asc
  93. file_gpg_id: 1
  94. gpg_keyring: rust.gpg
  95. - filename: unwind.patch
  96. enable: '[% c("var/windows-i686") %]'
  97. - filename: 43909.patch