Changeset ece9683


Ignore:
Timestamp:
09/09/2024 05:21:11 AM (5 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
lazarus, trunk
Children:
50b10994
Parents:
e668eb1
git-author:
Xi Ruoyao <xry111@…> (09/09/2024 05:19:52 AM)
git-committer:
Xi Ruoyao <xry111@…> (09/09/2024 05:21:11 AM)
Message:

rust: Break long lines, add empty lines to separate multi-line sed, and remove {} and && for "export"

The only way for "export" to fail is an insufficient memory here. And
if the system memory is insufficient basically *everything* will start
to blow up, so we don't need try to salvage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/rust.xml

    re668eb1 rece9683  
    316316    </para>
    317317
    318     <screen><userinput>sed '/MirOpt/d'                        -i src/bootstrap/src/core/builder.rs          &amp;&amp;
    319 sed 's/!path.ends_with("cargo")/true/' -i src/bootstrap/src/core/build_steps/tool.rs &amp;&amp;
    320 sed 's/^.*build_wasm.*$/#[allow(unreachable_code)]&amp;return false;/' -i src/bootstrap/src/lib.rs</userinput></screen>
     318    <screen><userinput>sed '/MirOpt/d' -i src/bootstrap/src/core/builder.rs &amp;&amp;
     319
     320sed 's/!path.ends_with("cargo")/true/' \
     321    -i src/bootstrap/src/core/build_steps/tool.rs &amp;&amp;
     322
     323sed 's/^.*build_wasm.*$/#[allow(unreachable_code)]&amp;return false;/' \
     324    -i src/bootstrap/src/lib.rs</userinput></screen>
    321325
    322326    <para>
     
    330334       src/tools/cargo/Cargo.toml &amp;&amp; -->
    331335
    332 <screen><userinput>{ [ ! -e /usr/include/libssh2.h ] || export LIBSSH2_SYS_USE_PKG_CONFIG=1;    } &amp;&amp;
    333 { [ ! -e /usr/include/sqlite3.h ] || export LIBSQLITE3_SYS_USE_PKG_CONFIG=1; } &amp;&amp;
     336<screen><userinput>[ ! -e /usr/include/libssh2.h ] || export LIBSSH2_SYS_USE_PKG_CONFIG=1
     337[ ! -e /usr/include/sqlite3.h ] || export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
    334338python3 x.py build</userinput></screen>
    335339
Note: See TracChangeset for help on using the changeset viewer.