Check-in [2de7bba382]
Overview
Comment:Updated check for 64bit platforms
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:2de7bba382b6a44a4d6df13cd4298ecbcfa9ada5
User & Date: rkeene on 2013-10-02 11:45:12
Other Links: manifest | tags
Context
2013-10-02
11:47
Updated to correctly set 64bit flags check-in: 9647859b32 user: rkeene tags: trunk
11:45
Updated check for 64bit platforms check-in: 2de7bba382 user: rkeene tags: trunk
11:38
Updated to support 64-bit tests better check-in: 75b6b83bca 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