CRT object files are now added using bundle

This commit is contained in:
Max Wash
2020-11-23 19:58:07 +00:00
parent f7df90bc0f
commit 8991e21636
2 changed files with 5 additions and 6 deletions

View File

@@ -109,6 +109,7 @@ bundle_add_dependencies(photon local-root crt)
add_custom_command(TARGET photon POST_BUILD
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/add-framework-crt.sh
${BUNDLE_PROGRAM}
${CMAKE_CURRENT_BINARY_DIR}/photon.framework
${CMAKE_CURRENT_BINARY_DIR})

View File

@@ -1,11 +1,9 @@
#!/bin/bash
framework_path=$1
binary_dir=$2
bundle_prog=$1
framework_path=$2
binary_dir=$3
crt_files=$(find $binary_dir -name "crt*.o")
for crt_file in $crt_files; do
out="$framework_path/bin/$(basename $crt_file .o).o"
cp -f $crt_file $out
done
$bundle_prog framework add-binaries -f $framework_path $crt_files