mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
b12cc2d4dd
commit
ff82a2af9a
1 changed files with 6 additions and 1 deletions
|
@ -30,7 +30,10 @@ build:
|
||||||
|
|
||||||
# clang17 doesn't like [[maybe_unused]] on types
|
# clang17 doesn't like [[maybe_unused]] on types
|
||||||
# fix cribbed from https://github.com/ruby/ruby/pull/4603/commits/fbdff085ef3c8a56e0a33404e8795879e3167549
|
# fix cribbed from https://github.com/ruby/ruby/pull/4603/commits/fbdff085ef3c8a56e0a33404e8795879e3167549
|
||||||
- run: sed -i -e 's/elif RBIMPL_HAS_C_ATTRIBUTE(maybe_unused)/elif RBIMPL_HAS_C_ATTRIBUTE(maybe_unused) \&\& (__STDC_VERSION__ >= 202000L)/' maybe_unused.h
|
- run: |
|
||||||
|
if test -f maybe_unused.h; then
|
||||||
|
sed -i -e 's/elif RBIMPL_HAS_C_ATTRIBUTE(maybe_unused)/elif RBIMPL_HAS_C_ATTRIBUTE(maybe_unused) \&\& (__STDC_VERSION__ >= 202000L)/' maybe_unused.h
|
||||||
|
fi
|
||||||
if: linux
|
if: linux
|
||||||
working-directory: include/ruby/internal/attr
|
working-directory: include/ruby/internal/attr
|
||||||
|
|
||||||
|
@ -72,6 +75,7 @@ build:
|
||||||
mv *-{{hw.platform}}*/* .
|
mv *-{{hw.platform}}*/* .
|
||||||
rmdir *-{{hw.platform}}*
|
rmdir *-{{hw.platform}}*
|
||||||
working-directory: ${{prefix}}/lib
|
working-directory: ${{prefix}}/lib
|
||||||
|
if: '>=2.6'
|
||||||
|
|
||||||
- run: sed -i.bak
|
- run: sed -i.bak
|
||||||
-e 's|$(DESTDIR){{prefix}}|$(topdir)|g'
|
-e 's|$(DESTDIR){{prefix}}|$(topdir)|g'
|
||||||
|
@ -79,6 +83,7 @@ build:
|
||||||
rbconfig.rb
|
rbconfig.rb
|
||||||
working-directory: ${{prefix}}/lib/ruby/{{version.marketing}}.0
|
working-directory: ${{prefix}}/lib/ruby/{{version.marketing}}.0
|
||||||
env:
|
env:
|
||||||
|
CFLAGS: $CFLAGS -Wno-implicit-function-declaration
|
||||||
ARGS:
|
ARGS:
|
||||||
- --prefix="{{prefix}}"
|
- --prefix="{{prefix}}"
|
||||||
- --enable-load-relative # makes us relocatable
|
- --enable-load-relative # makes us relocatable
|
||||||
|
|
Loading…
Reference in a new issue