Commit 6e332780 authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

Adding bitsize check

parent 71eb8006
......@@ -15,6 +15,7 @@ LINUX_NAME, LINUX_VERSION, LINUX_CODENAME = platform.dist()
BITSIZE = {
"i686": 32,
"x86_64": 64,
"sparc64": 64,
}.get(ARCH, "unspecified for "+ARCH)
# assert spec dir
......@@ -352,6 +353,7 @@ def generate_spec_config(options):
contents.append("sw_compiler2 = %s" % get_compiler_version(options.cpp_compiler))
contents.append("sw_compiler3 = %s" % get_compiler_version(options.fortran_compiler))
contents.append("sw_file = %s" % path_to_filesystem("."))
assert int(BITSIZE), "bitsize is ",BITSIZE
contents.append("sw_base_ptrsize = %d-bit" % BITSIZE)
contents.append("sw_peak_ptrsize = %d-bit" % BITSIZE)
contents.append("")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment