Check-in [2de7bba382]
Overview
SHA1:2de7bba382b6a44a4d6df13cd4298ecbcfa9ada5
Date: 2013-10-02 11:45:12
User: rkeene
Comment:Updated check for 64bit platforms
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2013-10-02
11:47
[9647859b32] Updated to correctly set 64bit flags (user: rkeene, tags: trunk)
11:45
[2de7bba382] Updated check for 64bit platforms (user: rkeene, tags: trunk)
11:38
[75b6b83bca] Updated to support 64-bit tests better (user: rkeene, tags: trunk)
Changes

Modified build/test/tests/01-pkgconfig.tcl from [80d95d3049] to [2e10cd62cc].

1
2
3
4
5
6
7








8
9
10
11
12
#! /usr/bin/env tclsh

# Tcl 8.4 doesn't support this test
if {$tcl_version == "8.4"} {
	exit 0
}









if {[tcl::pkgconfig get 64bit] == 0} {
	exit 0
}

exit 1







>
>
>
>
>
>
>
>
|




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/env tclsh

# Tcl 8.4 doesn't support this test
if {$tcl_version == "8.4"} {
	exit 0
}

# Determine if we should be 64-bit or not
set buildflags [split [lindex $argv 1] -]
if {[lsearch -exact $buildflags "amd64"] != -1} {
	set is64bit 1
} else {
	set is64bit 0
}

if {[tcl::pkgconfig get 64bit] == $is64bit} {
	exit 0
}

exit 1