-
Notifications
You must be signed in to change notification settings - Fork 38
Make this work on BigSur/M1 #169
base: main
Are you sure you want to change the base?
Conversation
@@ -105,16 +106,19 @@ def run(self): | |||
|
|||
loginit('bockbuild (%s)' % (self.bockbuild_rev)) | |||
info('cmd: %s' % ' '.join(sys.argv)) | |||
|
|||
progress ('here') | |||
if len (sys.argv) < 2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug printf.
if len (sys.argv) < 2: | ||
info ('Profiles in %s --' % self.git ('config --get remote.origin.url', self.profile_root)[0]) | ||
info(map (lambda x: '\t%s: %s' % (x.name, x.description), self.profiles)) | ||
finish (exit_codes.FAILURE) | ||
|
||
global active_profile | ||
progress (sys.argv[1]) | ||
Package.profile = active_profile = self.load_profile (sys.argv[1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many other places.
package.local_ld_flags = ['-arch i386', '-arch x86_64'] | ||
package.local_gcc_flags = ['-arch i386', '-arch x86_64'] | ||
if arch == 'darwin-arm64': | ||
package.local_ld_flags = ['-arch arm64'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation.
elif arch == 'darwin-32': | ||
package.local_ld_flags = ['-arch i386', '-m32'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this in the darwin-32 block ?
@@ -306,7 +310,7 @@ def __init__(self): | |||
Profile.FileProcessor.__init__(self, match=match_stageable_binary) | |||
|
|||
def process(self, path): | |||
run_shell('dsymutil -t 2 "%s" >/dev/null' % path) | |||
run_shell('dsymutil "%s" >/dev/null' % path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed ?
@@ -13,12 +13,12 @@ def install(self): | |||
|
|||
def arch_build(self, arch): | |||
if arch == 'darwin-universal': | |||
self.local_ld_flags = ['-arch i386', '-arch x86_64'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still care for 32 bit ?
@@ -235,7 +235,8 @@ def __init__(self): | |||
|
|||
# https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1092021/ | |||
'patches/gtk/0078-Optimize-querying-symbolic-hotkeys.patch', | |||
'patches/gtk/gdk-quartz-Remove-titlebar-handling-from-find_child.patch' | |||
'patches/gtk/gdk-quartz-Remove-titlebar-handling-from-find_child.patch', | |||
'patches/gtk/bigsurfix.patch' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps newer versions don't need this (or other) patches ?
These are the patches that I did last year, but they were against the Xamarin/BockBuild fork which was the old, proprietary one, and not the open source one.