Initialize reproducible release compiler flags
Modular container CI / release-build (push) Failing after 23m7s

This commit is contained in:
faumaray committed 2026-08-01 21:23:27 +03:00
1 parent b217d79a2b
commit ebb1040a71
2 files changed
+39 -2

No files matched your search

+18 -1
View File
@@ -263,7 +263,24 @@ while IFS=$'\t' read -r option value; do
done < <(jq -r '.cmakeOptions | to_entries[] | [.key, .value] | @tsv' \
"$configuration")
cmake "${cmake_arguments[@]}"
component_prefix_maps=(
"$source_root=$component_id"
"$build=${component_id}Build"
"$components=EchoionComponents"
"$dependencies=EchoionDependencies"
)
component_c_flags=${CFLAGS:-}
component_cxx_flags=${CXXFLAGS:-}
for component_prefix_map in "${component_prefix_maps[@]}"; do
component_c_flags+=" -ffile-prefix-map=$component_prefix_map"
component_c_flags+=" -fmacro-prefix-map=$component_prefix_map"
component_c_flags+=" -fdebug-prefix-map=$component_prefix_map"
component_cxx_flags+=" -ffile-prefix-map=$component_prefix_map"
component_cxx_flags+=" -fmacro-prefix-map=$component_prefix_map"
component_cxx_flags+=" -fdebug-prefix-map=$component_prefix_map"
done
CFLAGS="$component_c_flags" CXXFLAGS="$component_cxx_flags" \
cmake "${cmake_arguments[@]}"
cmake --build "$build" --config RelWithDebInfo --parallel
ctest --test-dir "$build" --build-config RelWithDebInfo --output-on-failure
cmake --install "$build" --config RelWithDebInfo