config 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # vim: filetype=yaml sw=2
  2. filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
  3. version: '[% c("var/current_version") %]'
  4. var:
  5. current_version: 1.53.0
  6. previous_version: 1.52.0
  7. container:
  8. use_container: 1
  9. targets:
  10. android:
  11. var:
  12. current_version: 1.55.0
  13. previous_version: 1.54.0
  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[% IF c("var/linux-cross") -%],[% c("var/rust_target") %][% END -%] --set=target.x86_64-unknown-linux-gnu.cc=gcc --set=target.i686-unknown-linux-gnu.cc=gcc
  58. linux-x86_64:
  59. var:
  60. rust_target: '[% c("arch") %]-unknown-linux-gnu'
  61. linux-i686:
  62. var:
  63. rust_target: '[% c("arch") %]-unknown-linux-gnu'
  64. linux-arm:
  65. var:
  66. rust_target: armv7-unknown-linux-gnueabihf
  67. linux-ppc64le:
  68. var:
  69. rust_target: powerpc64le-unknown-linux-gnu
  70. osx-x86_64:
  71. var:
  72. arch_deps:
  73. - libssl-dev
  74. - pkg-config
  75. - zlib1g-dev
  76. 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
  77. windows:
  78. var:
  79. arch_deps:
  80. - libssl-dev
  81. - pkg-config
  82. - zlib1g-dev
  83. 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
  84. input_files:
  85. - project: container-image
  86. - project: cmake
  87. name: cmake
  88. - project: ninja
  89. name: ninja
  90. - project: '[% c("var/compiler") %]'
  91. name: '[% c("var/compiler") %]'
  92. - name: gcc-host
  93. project: gcc
  94. enable: '[% c("var/linux-cross") %]'
  95. target:
  96. - '[% c("var/channel") %]'
  97. - 'torbrowser-linux-x86_64'
  98. - URL: 'https://static.rust-lang.org/dist/rustc-[% c("var/current_version") %]-src.tar.gz'
  99. name: rust
  100. sig_ext: asc
  101. file_gpg_id: 1
  102. gpg_keyring: rust.gpg
  103. - URL: 'https://static.rust-lang.org/dist/rust-[% c("var/previous_version") %]-x86_64-unknown-linux-gnu.tar.xz'
  104. name: previous_rust
  105. sig_ext: asc
  106. file_gpg_id: 1
  107. gpg_keyring: rust.gpg
  108. - project: python
  109. name: python
  110. enable: '[% c("var/linux") %]'
  111. # Fix for https://github.com/rust-lang/rust/issues/86436
  112. # Taken from https://github.com/rust-lang/rust/pull/86568 (merged it 1.54.0)
  113. - filename: fix-build-1.53.0.patch
  114. enable: '[% ! c("var/android") %]'