-
Notifications
You must be signed in to change notification settings - Fork 0
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
build(custom_runner): armv7 & armv8 Linux precompilation (#1) #3
base: main
Are you sure you want to change the base?
Conversation
@@ -699,7 +734,7 @@ jobs: | |||
|
|||
merge_packages: | |||
name: final-merge-packages | |||
runs-on: ubuntu-20.04 | |||
runs-on: ubuntu-latest-m |
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.
runs-on: ubuntu-latest-m | |
runs-on: ubuntu-latest-m |
Not enough disk space on default runner now with new arches, so using GitHub provided Large Runners here, but requires setup on each with a custom runner name (can all be done through GitHub UI)
@@ -802,7 +837,49 @@ jobs: | |||
with: | |||
name: firebase_cpp_sdk_windows.zip | |||
path: firebase_cpp_sdk_windows.zip | |||
|
|||
create_linux_only_package: |
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.
Added a linux only packaging step
c115daa
to
b486ed1
Compare
ce26e99
to
ae78b77
Compare
@@ -55,7 +55,7 @@ std::string HomeDir(std::string* out_error) { | |||
std::string XdgDataHomeDir(std::string* out_error) { | |||
const char* data_home = getenv("XDG_DATA_HOME"); | |||
if (data_home) return data_home; | |||
return ""; | |||
return "/data"; |
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.
Can be ignored, was just testing if this fixed another issue, get bad_alloc with or without this
# Toolchain file for building 64-bit Linux libraries | ||
set (CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -std=c++11") |
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.
-fPIC is required for the environment I'm building on
-std=c++11
added to see if resolved a bad_alloc crash - no affect with or without
# Toolchain file for building ARMv7 applications | ||
set (CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv7-a+fp -fPIC") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv7-a+fp -fPIC -std=c++11") |
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.
-fPIC is required for the environment I'm building on
-std=c++11
added to see if resolved a bad_alloc crash - no affect with or without
# Toolchain file for building ARMv8 applications | ||
set (CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv8-a -fPIC") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv8-a -fPIC -std=c++11") |
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.
-fPIC is required for the environment I'm building on
-std=c++11
added to see if resolved a bad_alloc crash - no affect with or without
Description
Testing
Type of Change
Place an
x
the applicable box:Notes
Release Notes
section ofrelease_build_files/readme.md
.