config 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. # vim: filetype=yaml sw=2
  2. filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
  3. version: '[% c("var/current_version") %]'
  4. container:
  5. use_container: 1
  6. var:
  7. current_version: 1.53.0
  8. previous_version: 1.52.0
  9. targets:
  10. android:
  11. var:
  12. current_version: 1.59.0
  13. previous_version: 1.58.1
  14. arch_deps:
  15. - libssl-dev
  16. - pkg-config
  17. - zlib1g-dev
  18. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=x86_64-unknown-linux-gnu,armv7-linux-androideabi,thumbv7neon-linux-androideabi,aarch64-linux-android,i686-linux-android,x86_64-linux-android --set=target.armv7-linux-androideabi.cc=armv7a-linux-androideabi16-clang --set=target.armv7-linux-androideabi.ar=armv7a-linux-androideabi-ar --set=target.thumbv7neon-linux-androideabi.cc=armv7a-linux-androideabi16-clang --set=target.thumbv7neon-linux-androideabi.ar=armv7a-linux-androideabi-ar --set=target.aarch64-linux-android.cc=aarch64-linux-android21-clang --set=target.aarch64-linux-android.ar=aarch64-linux-android-ar --set=target.i686-linux-android.cc=i686-linux-android16-clang --set=target.i686-linux-android.ar=i686-linux-android-ar --set=target.x86_64-linux-android.cc=x86_64-linux-android21-clang --set=target.x86_64-linux-android.ar=x86_64-linux-android-ar
  19. linux:
  20. var:
  21. deps:
  22. - libc6-dev-i386
  23. - lib32stdc++6
  24. - build-essential
  25. - python
  26. - automake
  27. - libssl-dev
  28. - pkg-config
  29. - hardening-wrapper
  30. # We use
  31. # `--enable-local-rust` to avoid downloading the required compiler during
  32. # build time
  33. #
  34. # `--enable-vendor` to avoid downloading crates during build time and just
  35. # use the ones which are shipped with the source
  36. #
  37. # `--enable-extended` to build not only rustc but cargo as well
  38. #
  39. # `--enable-llvm-static-stdcpp` to take a libstdc++ on Jessie into account
  40. # which is too old and if used gives undefined reference errors
  41. #
  42. # `--release-channel=stable` to just include stable features in the
  43. # compiler
  44. #
  45. # `--sysconfdir=etc` to avoid install failures as |make install| wants to
  46. # write to /etc otherwise
  47. #
  48. # the `target` triple to explicitly specify the architecture and platform
  49. # for the compiler/std lib. Ideally, it should not be needed unless one is
  50. # cross-compiling, but compiling `alloc_jemalloc` fails without that in a
  51. # 32bit container. "--host=x86_64-unknown-linux-gnu" is used in its
  52. # configure script in this case.
  53. # `--set=` to explicitly specify the C compiler. We need to compile the
  54. # bundled LLVM and it wants to use `cc`. However, we don't have that in
  55. # our compiled GCC resulting in weird errors due to C and C++ compiler
  56. # version mismatch. We avoid that with this configure option.
  57. 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
  58. osx-x86_64:
  59. var:
  60. arch_deps:
  61. - libssl-dev
  62. - pkg-config
  63. - zlib1g-dev
  64. configure_opt: --enable-local-rust --enable-vendor --enable-extended --release-channel=stable --sysconfdir=etc --target=x86_64-unknown-linux-gnu,x86_64-apple-darwin --set=target.x86_64-apple-darwin.cc=x86_64-apple-darwin-clang
  65. windows:
  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-unknown-linux-gnu,[% c("arch") %]-pc-windows-gnu
  72. input_files:
  73. - project: container-image
  74. - project: cmake
  75. name: cmake
  76. - project: ninja
  77. name: ninja
  78. - project: '[% c("var/compiler") %]'
  79. name: '[% c("var/compiler") %]'
  80. - URL: 'https://static.rust-lang.org/dist/rustc-[% c("var/current_version") %]-src.tar.gz'
  81. name: rust
  82. sig_ext: asc
  83. file_gpg_id: 1
  84. gpg_keyring: rust.gpg
  85. - URL: 'https://static.rust-lang.org/dist/rust-[% c("var/previous_version") %]-x86_64-unknown-linux-gnu.tar.xz'
  86. name: previous_rust
  87. sig_ext: asc
  88. file_gpg_id: 1
  89. gpg_keyring: rust.gpg
  90. - project: python
  91. name: python
  92. enable: '[% c("var/linux") %]'
  93. # Fix for https://github.com/rust-lang/rust/issues/86436
  94. # Taken from https://github.com/rust-lang/rust/pull/86568 (merged it 1.54.0)
  95. - filename: fix-build-1.53.0.patch
  96. enable: '[% ! c("var/android") %]'