Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
data/macros: Sync with boulder-rs
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <ikey@serpentos.com>
  • Loading branch information
ikeycode committed Mar 10, 2024
1 parent 1907b42 commit 0c72478
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions data/macros/actions/perl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
actions:

# NOTE: If required we can add support for the deprecated Module::Build buildsystem in the future.
# However, let's just support ExtUtils::MakeMaker for now to vastly simply these macros.

# Setup perl with ExtUtils::MakeMaker from stdlib
- perl_setup:
command: |
perl Makefile.PL PREFIX="%(prefix)" NO_PACKLIST=1 NO_PERLLOCAL=1 INSTALLDIRS=vendor DESTDIR="%(installroot)"
dependencies:
- perl

2 changes: 2 additions & 0 deletions data/macros/actions/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ actions:
command: |
python3 -m build --wheel --no-isolation
dependencies:
- python
- python-build
- python-wheel

Expand All @@ -28,4 +29,5 @@ actions:
command: |
python3 -m installer --destdir="%(installroot)" dist/*.whl
dependencies:
- python
- python-installer
20 changes: 20 additions & 0 deletions data/macros/arch/x86_64-v3x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Provides -m64 builds for x86_64-v3x build-hosts

definitions:

- libsuffix : ""
- build_platform : x86_64-%(vendorID)
- host_platform : x86_64-%(vendorID)
- cc : "%(compiler_c)"
- cxx : "%(compiler_cxx)"
- cpp : "%(compiler_cpp)"
- march : x86-64-v3
- mtune : znver1

flags:

# Set architecture flags (GCC)
- architecture:
c : "-march=x86-64-v3 -mtune=znver1 -maes -mfsgsbase -mpclmul -mrdrnd -maes -mxsaveopt"
cxx : "-march=x86-64-v3 -mtune=znver1 -maes -mfsgsbase -mpclmul -mrdrnd -maes -mxsaveopt"

0 comments on commit 0c72478

Please sign in to comment.