Changeset 948ffd7b


Ignore:
Timestamp:
01/01/2024 06:50:30 PM (5 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/llvm18
Children:
30b074c0
Parents:
31f55626
git-author:
Xi Ruoyao <xry111@…> (12/29/2023 07:07:14 PM)
git-committer:
Xi Ruoyao <xry111@…> (01/01/2024 06:50:30 PM)
Message:

Update to rustc-1.75.0

Add rust.lto="thin" and rust.codegen-units=1 to optimize the compiler
like upstream official build.

Add some external dependencies.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • general/prog/rust.xml

    r31f55626 r948ffd7b  
    77  <!ENTITY rust-download-http "https://static.rust-lang.org/dist/rustc-&rust-version;-src.tar.xz">
    88  <!ENTITY rust-download-ftp  " ">
    9   <!ENTITY rust-md5sum        "ed0a20a070a3470b63bc612c82ea23fa">
    10   <!ENTITY rust-size          "149 MB">
     9  <!ENTITY rust-md5sum        "62d794105a8c98923a67e6d9ce032be0">
     10  <!ENTITY rust-size          "153 MB">
    1111  <!ENTITY rust-buildsize     "8.9 GB (298 MB installed); add 6.4 GB if running the tests">
    1212  <!ENTITY rust-time          "6.7 SBU (including download time; add 6.2 SBU for tests, both using parallelism=8)">
     
    146146    </itemizedlist>
    147147
    148 <!--<bridgehead renderas="sect3">Additional Downloads</bridgehead>
     148    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    149149    <itemizedlist spacing="compact">
    150150      <listitem>
    151151        <para>
    152           Required patch:
    153           <ulink url="&patch-root;/rustc-&rust-version;-llvm9_fixes-1.patch"/>
     152          Optional patch (recommended if running the test suite):
     153          <ulink url="&patch-root;/rustc-&rust-version;-testsuite_fix-1.patch"/>
    154154        </para>
    155155      </listitem>
    156     </itemizedlist>-->
     156    </itemizedlist>
    157157
    158158    <bridgehead renderas="sect3">Rust Dependencies</bridgehead>
     
    187187    <para role="optional">
    188188      <xref linkend="gdb"/> (used by the test suite if it is present),
    189       <xref linkend="git"/> (required by the test suite), and
     189      <xref linkend="git"/> (required by the test suite),
     190      <ulink url="https://github.com/bytecodealliance/wasmtime/tree/main/cranelift">cranelift</ulink>,
     191      <ulink url="https://jemalloc.net/">jemalloc</ulink>,
     192      libgccjit (read command explanation in
     193      <xref role="nodep" linkend="gcc"/>), and
    190194      <ulink url='https://libgit2.org/'>libgit2</ulink>
    191195    </para>
     
    247251
    248252    <para>
     253      If running the test suite, apply a patch to prevent the building
     254      system from unnecessarily rebuilding the compiler:
     255    </para>
     256
     257    <screen><userinput>patch -Np1 -i ../rustc-&rust-version;-testsuite_fix-1.patch</userinput></screen>
     258
     259    <para>
    249260      Create a suitable <filename>config.toml</filename> file which will
    250261      configure the build.
     
    256267# e.g. if not installing clang, or using a version before 13.0
    257268
    258 # tell x.py to not keep printing an annoying warning
    259 changelog-seen = 2
     269# Tell x.py the editors have reviewed the content of this file
     270# and updated it to follow the major changes of the building system,
     271# so x.py will not warn us to do such a review.
     272change-id = 116881
    260273
    261274[llvm]
     
    298311#codegen-tests = false
    299312
     313# Enable the same optimizations as the official upstream build.
     314lto = "thin"
     315codegen-units = 1
     316
    300317[target.x86_64-unknown-linux-gnu]
    301318# NB the output of llvm-config (i.e. help options) may be
     
    308325llvm-config = "/usr/bin/llvm-config"</literal>
    309326EOF</userinput></screen>
     327
     328    <note>
     329      <para>
     330        The <command>python3 x.py</command> commands may output a warning
     331        message complaining <quote><computeroutput>no codegen-backends
     332        config matched the requested path to build a codegen
     333        backend</computeroutput></quote>.  And the provided
     334        <quote>suggestion</quote> (<computeroutput>add backend to
     335        codegen-backends in config.toml</computeroutput>) will not silence
     336        it.  This warning is <ulink
     337        url='https://github.com/rust-lang/rust/issues/110692'>bogus</ulink>
     338        and it should be ignored.
     339      </para>
     340    </note>
    310341
    311342    <para>
  • introduction/welcome/changelog.xml

    r31f55626 r948ffd7b  
    3939    </listitem>
    4040    -->
     41    <listitem>
     42      <para>January 1st, 2024</para>
     43      <itemizedlist>
     44        <listitem>
     45          <para>[xry111] - Update to rustc-1.75.0.  Fixes
     46          <ulink url="&blfs-ticket-root;19603">#19603</ulink>.</para>
     47        </listitem>
     48      </itemizedlist>
     49    </listitem>
     50
    4151    <listitem>
    4252      <para>December 31st, 2023</para>
  • packages.ent

    r31f55626 r948ffd7b  
    354354<!ENTITY ruby-version                 "&ruby-minor-version;.&ruby-patch-version;">
    355355<!ENTITY ruby-gemdir                  "/usr/lib/ruby/gems/&ruby-minor-version;.0">
    356 <!ENTITY rust-version                 "1.74.1">
     356<!ENTITY rust-version                 "1.75.0">
    357357<!ENTITY scons-version                "4.6.0">
    358358<!ENTITY slang-version                "2.3.3">
Note: See TracChangeset for help on using the changeset viewer.