mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-07 05:15:49 +00:00
Compare commits
1 Commits
release/2.
...
release/2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
edefb66c7e |
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
@@ -13,12 +13,15 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: macos14
|
- os: macos14
|
||||||
build_type: Release
|
build_type: Release
|
||||||
|
static: false
|
||||||
- os: heavy
|
- os: heavy
|
||||||
build_type: Release
|
build_type: Release
|
||||||
|
static: true
|
||||||
container:
|
container:
|
||||||
image: rippleci/clio_ci:latest
|
image: rippleci/clio_ci:latest
|
||||||
- os: heavy
|
- os: heavy
|
||||||
build_type: Debug
|
build_type: Debug
|
||||||
|
static: true
|
||||||
container:
|
container:
|
||||||
image: rippleci/clio_ci:latest
|
image: rippleci/clio_ci:latest
|
||||||
runs-on: [self-hosted, "${{ matrix.os }}"]
|
runs-on: [self-hosted, "${{ matrix.os }}"]
|
||||||
@@ -50,6 +53,7 @@ jobs:
|
|||||||
conan_profile: ${{ steps.conan.outputs.conan_profile }}
|
conan_profile: ${{ steps.conan.outputs.conan_profile }}
|
||||||
conan_cache_hit: ${{ steps.restore_cache.outputs.conan_cache_hit }}
|
conan_cache_hit: ${{ steps.restore_cache.outputs.conan_cache_hit }}
|
||||||
build_type: ${{ matrix.build_type }}
|
build_type: ${{ matrix.build_type }}
|
||||||
|
static: ${{ matrix.static }}
|
||||||
|
|
||||||
- name: Build Clio
|
- name: Build Clio
|
||||||
uses: ./.github/actions/build_clio
|
uses: ./.github/actions/build_clio
|
||||||
|
|||||||
@@ -11,18 +11,16 @@ target_sources(clio_server PRIVATE Main.cpp)
|
|||||||
target_link_libraries(clio_server PRIVATE clio)
|
target_link_libraries(clio_server PRIVATE clio)
|
||||||
|
|
||||||
if (static)
|
if (static)
|
||||||
target_link_options(clio_server PRIVATE -static)
|
if (san)
|
||||||
|
message(FATAL_ERROR "Static linkage not allowed when using sanitizers")
|
||||||
if (is_gcc AND NOT san)
|
elseif (is_appleclang)
|
||||||
|
message(FATAL_ERROR "Static linkage not supported on AppleClang")
|
||||||
|
else ()
|
||||||
target_link_options(
|
target_link_options(
|
||||||
# For now let's assume that we only using libstdc++ under gcc.
|
# Note: -static-libstdc++ can statically link both libstdc++ and libc++
|
||||||
clio_server PRIVATE -static-libstdc++ -static-libgcc
|
clio_server PRIVATE -static-libstdc++ -static-libgcc
|
||||||
)
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (is_appleclang)
|
|
||||||
message(FATAL_ERROR "Static linkage not supported on AppleClang")
|
|
||||||
endif ()
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set_target_properties(clio_server PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
set_target_properties(clio_server PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
|
|||||||
Reference in New Issue
Block a user