Skip to content

Commit

Permalink
Merge pull request #720 from skyamgarp/PE-36622
Browse files Browse the repository at this point in the history
(PE-36622) Build client-tools-runtime-main for macOS 13 (ARM)
  • Loading branch information
joshcooper authored Aug 17, 2023
2 parents 6a69791 + 9bd1b4e commit 02f40ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 10 additions & 3 deletions configs/projects/_shared-client-tools-runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
# We need to explicitly define 1.1.1k here to avoid
# build dep conflicts between openssl-1.1.1 needed by curl
# and krb5-devel
if platform.name =~ /^redhatfips-8/
if proj.settings[:openssl_version]
# already defined in the project
elsif platform.name =~ /^redhatfips-8/
proj.setting(:openssl_version, '1.1.1k')
else
else
proj.setting(:openssl_version, '1.1.1')
end

Expand Down Expand Up @@ -77,6 +79,8 @@
# The core2 architecture is not available on M1 Macs
proj.setting(:cflags, "#{proj.cppflags}")
proj.setting(:host, "--host aarch64-apple-darwin --build x86_64-apple-darwin --target aarch64-apple-darwin")
elsif platform.architecture == 'arm64'
proj.setting(:cflags, "#{proj.cppflags}")
else
proj.setting(:cflags, "-march=core2 -msse4 #{proj.cppflags}")
end
Expand All @@ -102,7 +106,10 @@

# Common deps
proj.component "runtime-client-tools"
if platform.name =~ /^redhatfips-.*/

if proj.settings[:openssl_version]
proj.component "openssl-#{proj.openssl_version}"
elsif platform.name =~ /^redhatfips-.*/
proj.component "openssl-1.1.1-fips"
else
proj.component "openssl-#{proj.openssl_version}"
Expand Down
2 changes: 2 additions & 0 deletions configs/projects/client-tools-runtime-main.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
project 'client-tools-runtime-main' do |proj|
proj.setting(:openssl_version, '3.0')

# Common settings
instance_eval File.read(File.join(File.dirname(__FILE__), '_shared-client-tools-runtime.rb'))
end

0 comments on commit 02f40ba

Please sign in to comment.