config 4.4 KB

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