mirror of
https://github.com/darlinghq/darling-JavaScriptCore.git
synced 2024-11-23 04:09:40 +00:00
Upload generate-derived-sources.sh Script
This commit is contained in:
parent
f1fbbd06ad
commit
c2ff328e96
26
darling/scripts/generate-derived-sources.sh
Executable file
26
darling/scripts/generate-derived-sources.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
# Based on Scripts/generate-derived-sources.sh
|
||||
|
||||
set -e
|
||||
|
||||
ARGS=("$@")
|
||||
|
||||
export SRCROOT=$(cd ../.. && pwd)
|
||||
export BUILT_PRODUCTS_DIR=$SRCROOT
|
||||
|
||||
mkdir -p "${BUILT_PRODUCTS_DIR}/DerivedSources/JavaScriptCore"
|
||||
cd "${BUILT_PRODUCTS_DIR}/DerivedSources/JavaScriptCore"
|
||||
|
||||
if [[ -d JavaScriptCore ]]; then
|
||||
rm -d JavaScriptCore
|
||||
fi
|
||||
/bin/ln -sf "${SRCROOT}" JavaScriptCore
|
||||
|
||||
export JavaScriptCore="JavaScriptCore"
|
||||
|
||||
if [ ! $CC ]; then
|
||||
export CC="clang"
|
||||
fi
|
||||
|
||||
|
||||
make --no-builtin-rules -f "JavaScriptCore/DerivedSources.make" -j `grep -c ^processor /proc/cpuinfo` "${ARGS[@]}"
|
Loading…
Reference in New Issue
Block a user