File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 39
39
40
40
prepare () {
41
41
echo " ~> install \` mold\` "
42
- apt-get install -y mold
42
+ if [ " $EUID " -ne 0 ]; then
43
+ apt-get install -y mold
44
+ else
45
+ sudo apt-get install -y mold
46
+ fi
43
47
}
44
48
45
49
build () {
@@ -50,7 +54,7 @@ build() {
50
54
51
55
local bin=" $1 "
52
56
53
- export RUSTFLAGS=" -C link-arg=-fuse-ld=mold - Ctarget-cpu=native $rustflags "
57
+ export RUSTFLAGS=" -Ctarget-cpu=native $rustflags "
54
58
55
59
! [ -d " $root /.result" ] && mkdir -p " $root /.result"
56
60
pushd " $root /.result" > /dev/null
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ build() {
45
45
46
46
local bin=" $1 "
47
47
48
- export RUSTFLAGS=" --cfg tokio_unstable - Ctarget-cpu=native $rustflags "
48
+ export RUSTFLAGS=" -Ctarget-cpu=native $rustflags "
49
49
50
50
! [ -d " $root /.result" ] && mkdir -p " $root /.result"
51
51
pushd " $root /.result" > /dev/null
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function Main {
36
36
)
37
37
38
38
if (! [System.Environment ]::Is64BitOperatingSystem) {
39
- Write-Error " >>> \`charted\` is not supported on 32-bit systems"
39
+ Write-Error " >>> ume is not supported on 32-bit systems"
40
40
Exit 1
41
41
}
42
42
You can’t perform that action at this time.
0 commit comments