File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,17 @@ for example:
14
14
./src/ci/docker/run.sh x86_64-gnu
15
15
```
16
16
17
- Images will output artifacts in an ` obj ` dir at the root of a repository. Note
17
+ Images will output artifacts in an ` obj/$image_name ` dir at the root of a repository. Note
18
18
that the script will overwrite the contents of this directory.
19
19
20
20
To match conditions in rusts CI, also set the environment variable ` DEPLOY=1 ` , e.g.:
21
21
```
22
22
DEPLOY=1 ./src/ci/docker/run.sh x86_64-gnu
23
23
```
24
24
25
- ** NOTE** : Re-using the same ` obj ` dir with different docker images with
26
- the same target triple (e.g. ` dist-x86_64-linux ` and ` dist-various-1 ` )
27
- may result in strange linker errors, due shared library versions differing between platforms.
28
-
29
- If you encounter any issues when using multiple Docker images, try deleting your ` obj ` directory
30
- before running your command.
25
+ ** NOTE** : In CI, the script outputs the artifacts to the ` obj ` directory,
26
+ while locally, to the ` obj/$image_name ` directory. This is primarily to prevent
27
+ strange linker errors when using multiple Docker images.
31
28
32
29
## Filesystem layout
33
30
Original file line number Diff line number Diff line change @@ -33,16 +33,20 @@ ci_dir="`dirname $script_dir`"
33
33
src_dir=" ` dirname $ci_dir ` "
34
34
root_dir=" ` dirname $src_dir ` "
35
35
36
- objdir=$root_dir /obj
36
+ source " $ci_dir /shared.sh"
37
+
38
+ if isCI; then
39
+ objdir=$root_dir /obj
40
+ else
41
+ objdir=$root_dir /obj/$image
42
+ fi
37
43
dist=$objdir /build/dist
38
44
39
45
40
46
if [ -d " $root_dir /.git" ]; then
41
47
IS_GIT_SOURCE=1
42
48
fi
43
49
44
- source " $ci_dir /shared.sh"
45
-
46
50
CACHE_DOMAIN=" ${CACHE_DOMAIN:- ci-caches.rust-lang.org} "
47
51
48
52
if [ -f " $docker_dir /$image /Dockerfile" ]; then
You can’t perform that action at this time.
0 commit comments