Check-in [03a0bbd8b0]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Attempted to update to latest version of LLVM
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | llvm
Files: files | file ages | folders
SHA1:03a0bbd8b0aa36e26d16c22c77f76f567e44d0ea
User & Date: rkeene 2013-08-06 19:58:58
Context
2013-08-06
19:58
Attempted to update to latest version of LLVM Leaf check-in: 03a0bbd8b0 user: rkeene tags: llvm
2012-09-03
18:44
Added start of LLVM/Clang support (which as of version 3.1 does not produce any working compilers as far as I can tell) check-in: 825c8fd29a user: rkeene tags: llvm
Changes

Changes to build-cc.

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
..
93
94
95
96
97
98
99





100
101
102
103
104
105
106
107
108
109
...
272
273
274
275
276
277
278

279

280
281
282
283
284
285
286
...
396
397
398
399
400
401
402


403

404
405
406
407
408
409
410
## Load configuration file
if [ -f "build-cc.conf" ]; then
	. "build-cc.conf"
fi

# Tool versions
BINUTILS_VERS='2.22'
CLANG_VERS='3.1'
LLVM_VERS="${CLANG_VERS}"
CRT_VERS="${CLANG_VERS}"

# Start of script
## Initialize default values
use_multilib='1'
use_gnu_ld='1'
................................................................................
## URLs
### Binutils
BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERS}.tar.bz2"
BINUTILS_TARBALL="src/binutils-${BINUTILS_VERS}.tar.bz2"
BINUTILS_DIR="binutils-${BINUTILS_VERS}"

### CLANG





CLANG_URL="http://llvm.org/releases/${CLANG_VERS}/clang-${CLANG_VERS}.src.tar.gz"
CLANG_TARBALL="src/clang-${CLANG_VERS}.tar.gz"
CLANG_DIR="clang-${CLANG_VERS}.src"

### LLVM
LLVM_URL="http://llvm.org/releases/${LLVM_VERS}/llvm-${LLVM_VERS}.src.tar.gz"
LLVM_TARBALL="src/llvm-${LLVM_VERS}.tar.gz"
LLVM_DIR="llvm-${LLVM_VERS}.src"

### Compiler-RT
................................................................................

	"../${BINUTILS_DIR}/configure" --target="${CCNAME}" --prefix="${CCDIR}" --disable-nls --with-sysroot="${CCDIR}/${CCNAME}" --with-build-sysroot="${CCDIR}/${CCNAME}"

	${MAKE} || exit 1

	${MAKE} install || exit 1
) || exit 1

rm -rf "binutils-${CCNAME}"


## Compile C compiler (CLANG) if needed
### Prepare fix-ups (stage1)
if [ "${STAGE}" = "stage1" ]; then
	true
fi

................................................................................
	true
fi

### If we exited with failure above, abort
if [ "${retval}" != "2" -a "${retval}" != "0" ]; then
	exit 1
fi


rm -rf "llvm-${CCNAME}"


## Install libraries for this platform
for appscript in scripts/* scripts/post/*; do
	if echo "${appscripts}" | grep '/common$' >/dev/null; then
		continue
	fi








|







 







>
>
>
>
>
|
|
|







 







>
|
>







 







>
>
|
>







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
..
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
...
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
...
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
## Load configuration file
if [ -f "build-cc.conf" ]; then
	. "build-cc.conf"
fi

# Tool versions
BINUTILS_VERS='2.22'
CLANG_VERS='3.3'
LLVM_VERS="${CLANG_VERS}"
CRT_VERS="${CLANG_VERS}"

# Start of script
## Initialize default values
use_multilib='1'
use_gnu_ld='1'
................................................................................
## URLs
### Binutils
BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERS}.tar.bz2"
BINUTILS_TARBALL="src/binutils-${BINUTILS_VERS}.tar.bz2"
BINUTILS_DIR="binutils-${BINUTILS_VERS}"

### CLANG
if [ "${CLANG_VERS}" = "3.3" ]; then
	CLANG_NAME="cfe"
else
	CLANG_NAME="clang"
fi
CLANG_URL="http://llvm.org/releases/${CLANG_VERS}/${CLANG_NAME}-${CLANG_VERS}.src.tar.gz"
CLANG_TARBALL="src/${CLANG_NAME}-${CLANG_VERS}.tar.gz"
CLANG_DIR="${CLANG_NAME}-${CLANG_VERS}.src"

### LLVM
LLVM_URL="http://llvm.org/releases/${LLVM_VERS}/llvm-${LLVM_VERS}.src.tar.gz"
LLVM_TARBALL="src/llvm-${LLVM_VERS}.tar.gz"
LLVM_DIR="llvm-${LLVM_VERS}.src"

### Compiler-RT
................................................................................

	"../${BINUTILS_DIR}/configure" --target="${CCNAME}" --prefix="${CCDIR}" --disable-nls --with-sysroot="${CCDIR}/${CCNAME}" --with-build-sysroot="${CCDIR}/${CCNAME}"

	${MAKE} || exit 1

	${MAKE} install || exit 1
) || exit 1
if [ "${BUILD_CC_DONT_REMOVE}" != '1' ]; then
	rm -rf "binutils-${CCNAME}"
fi

## Compile C compiler (CLANG) if needed
### Prepare fix-ups (stage1)
if [ "${STAGE}" = "stage1" ]; then
	true
fi

................................................................................
	true
fi

### If we exited with failure above, abort
if [ "${retval}" != "2" -a "${retval}" != "0" ]; then
	exit 1
fi

if [ "${BUILD_CC_DONT_REMOVE}" != '1' ]; then
	rm -rf "llvm-${CCNAME}"
fi

## Install libraries for this platform
for appscript in scripts/* scripts/post/*; do
	if echo "${appscripts}" | grep '/common$' >/dev/null; then
		continue
	fi