Skip to content

Instantly share code, notes, and snippets.

@rorybolt
Created January 6, 2022 19:19
Show Gist options
  • Save rorybolt/3d4341434ac71edef4fe7f53e7299681 to your computer and use it in GitHub Desktop.
Save rorybolt/3d4341434ac71edef4fe7f53e7299681 to your computer and use it in GitHub Desktop.
arm64.py
from catalyst import builder
class arch_arm64(builder.generic):
"builder class for arm64"
def __init__(self,myspec):
builder.generic.__init__(self,myspec)
self.settings["COMMON_FLAGS"]="-O2 -pipe"
self.settings["CHOST"]="aarch64-unknown-linux-gnu"
class arch_arm64be(builder.generic):
"builder class for arm64 big endian"
def __init__(self,myspec):
builder.generic.__init__(self,myspec)
self.settings["COMMON_FLAGS"]="-O2 -pipe"
self.settings["CHOST"]="aarch64_be-unknown-linux-gnu"
def register():
"Inform main catalyst program of the contents of this plugin."
return ({ "arm64":arch_arm64,
"aarch64_be":arch_arm64be},
("aarch64","arm64", "aarch64_be"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment