File tree Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Original file line number Diff line number Diff line change 17
17
id : check-cache
18
18
uses : actions/cache@main
19
19
with :
20
- key : gcc-15.1.0
20
+ key : gcc-15.1.0-1
21
21
lookup-only : true
22
22
path : |
23
23
/tmp/x86_64-linux-gnu.tar.xz
26
26
if : ${{ steps.check-cache.outputs.cache-hit != 'true' }}
27
27
run : |
28
28
bash './build.sh' 'native'
29
- - name : Create logs
30
- if : ${{ steps.check-cache.outputs.cache-hit != 'true' }} && '!cancelled()'
31
- run : |
32
- declare logs=''
33
-
34
- while read file; do
35
- logs+="${file} "
36
- done <<< $(find "/tmp/gcc-"*"/build" -wholename '*/config.log')
37
-
38
- tar --create --file=- ${logs} | xz --threads='0' --compress -9 > '/tmp/logs.tar.xz'
39
- - name : Upload logs
40
- if : ${{ steps.check-cache.outputs.cache-hit != 'true' }} && '!cancelled()'
41
- uses : actions/upload-artifact@main
42
- with :
43
- name : logs
44
- if-no-files-found : error
45
- path : |
46
- /tmp/logs.tar.xz
47
29
- name : Generate tarball
48
30
if : ${{ steps.check-cache.outputs.cache-hit != 'true' }}
49
31
run : |
63
45
if : ${{ steps.check-cache.outputs.cache-hit != 'true' }}
64
46
uses : actions/cache@main
65
47
with :
66
- key : gcc-15.1.0
48
+ key : gcc-15.1.0-1
67
49
path : |
68
50
/tmp/x86_64-linux-gnu.tar.xz
69
51
/tmp/x86_64-linux-gnu.tar.xz.sha256
100
82
- name : Restore from cache
101
83
uses : actions/cache@main
102
84
with :
103
- key : gcc-15.1.0
85
+ key : gcc-15.1.0-1
104
86
fail-on-cache-miss : true
105
87
path : |
106
88
/tmp/x86_64-linux-gnu.tar.xz
Original file line number Diff line number Diff line change @@ -360,10 +360,6 @@ for triplet in "${targets[@]}"; do
360
360
mv " ${toolchain_directory} /${triplet} /include/unwind.h" " ${toolchain_directory} /${triplet} /include/unwind.h.bak"
361
361
fi
362
362
363
- if ! (( is_native )) ; then
364
- extra_configure_flags+=' --enable-default-pie'
365
- fi
366
-
367
363
[ -d " ${gcc_directory} /build" ] || mkdir " ${gcc_directory} /build"
368
364
369
365
cd " ${gcc_directory} /build"
@@ -390,6 +386,7 @@ for triplet in "${targets[@]}"; do
390
386
--enable-__cxa_atexit \
391
387
--enable-cet=' auto' \
392
388
--enable-checking=' release' \
389
+ --disable-default-pie \
393
390
--enable-default-ssp \
394
391
--enable-gnu-indirect-function \
395
392
--enable-languages=' c,c++' \
You can’t perform that action at this time.
0 commit comments