]> git.saurik.com Git - apple/javascriptcore.git/blob - JavaScriptCore.vcxproj/LLInt/LLIntDesiredOffsets/build-LLIntDesiredOffsets.sh
JavaScriptCore-1218.34.tar.gz
[apple/javascriptcore.git] / JavaScriptCore.vcxproj / LLInt / LLIntDesiredOffsets / build-LLIntDesiredOffsets.sh
1 #!/usr/bin/bash
2
3 SRCROOT="`pwd`/../../.."
4 SRCROOT=`realpath "$SRCROOT"`
5 # Do a little dance to get the path into 8.3 form to make it safe for gnu make
6 # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
7 SRCROOT=`cygpath -m -s "$SRCROOT"`
8 SRCROOT=`cygpath -u "$SRCROOT"`
9 export SRCROOT
10
11 XDSTROOT="$1"
12 export XDSTROOT
13 # Do a little dance to get the path into 8.3 form to make it safe for gnu make
14 # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
15 XDSTROOT=`cygpath -m -s "$XDSTROOT"`
16 XDSTROOT=`cygpath -u "$XDSTROOT"`
17 export XDSTROOT
18
19 export BUILT_PRODUCTS_DIR="$XDSTROOT/obj32/JavaScriptCore/DerivedSources"
20
21 ##############################################################################
22 # Step 1: Generate LLIntDesiredOffsets.h
23 mkdir -p "${BUILT_PRODUCTS_DIR}"
24
25 /usr/bin/env ruby "${SRCROOT}/offlineasm/generate_offset_extractor.rb" "${SRCROOT}/llint/LowLevelInterpreter.asm" "${BUILT_PRODUCTS_DIR}/LLIntDesiredOffsets.h"