Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change options based on arch for Mesa #1892

Merged
merged 20 commits into from
Mar 23, 2020
Merged
Changes from 2 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions easybuild/easyblocks/m/mesa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This easyblock was created by the BEAR Software team at the University of Birmingham

from easybuild.easyblocks.generic.mesonninja import MesonNinja
from easybuild.tools.systemtools import POWER, X86_64, get_cpu_architecture


class EB_Mesa(MesonNinja):
def configure_step(self, cmd_prefix=''):
edmondac marked this conversation as resolved.
Show resolved Hide resolved
"""
Customise the configopts based on the platform
"""
arch = get_cpu_architecture()
if arch == X86_64:
self.cfg.update('configopts', "-Dgallium-drivers='swrast,swr')
edmondac marked this conversation as resolved.
Show resolved Hide resolved
elif arch == POWER:
self.cfg.update('configopts', "-Dgallium-drivers='swrast'")
return super(EB_Mesa, self).configure_step(cmd_prefix=cmd_prefix)