File: cross.patch

package info (click to toggle)
odc 1.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,144 kB
  • sloc: cpp: 21,984; f90: 3,707; sh: 966; ansic: 477; python: 389; makefile: 33
file content (46 lines) | stat: -rw-r--r-- 1,952 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--- odc-1.5.0.orig/CMakeLists.txt
+++ odc-1.5.0/CMakeLists.txt
@@ -22,42 +22,6 @@
 
 ### long and double must be 64 bits exactly
 
-# test by c compilation
-ecbuild_check_c_source_return(
-    "#include <stdio.h>\nint main(){printf(\"%ld\",sizeof(long));return 0;}"
-    VAR check_long_final
-    OUTPUT __sizeof_long_final
-)
-ecbuild_check_c_source_return(
-    "#include <stdio.h>\nint main(){printf(\"%ld\",sizeof(double));return 0;}"
-    VAR check_double_final
-    OUTPUT __sizeof_double_final
-)
-
-if( NOT check_long_final OR NOT __sizeof_long_final EQUAL "8" )
-    message( FATAL_ERROR "operating system ${CMAKE_SYSTEM} (${EC_OS_BITS} bits) and sizeof long [${__sizeof_long_final}] -- long must be 64 bits exactly" )
-elseif( NOT check_double_final OR NOT __sizeof_double_final EQUAL "8" )
-    message( FATAL_ERROR "operating system ${CMAKE_SYSTEM} (${EC_OS_BITS} bits) and sizeof double [${__sizeof_double_final}] -- double must be 64 bits exactly" )
-endif()
-
-# test by cxx compilation
-ecbuild_check_cxx_source_return(
-    "#include <iostream>\nint main(){ std::cout << sizeof(long);return 0;}"
-    VAR cxx_check_long_final
-    OUTPUT __cxx_sizeof_long_final
-)
-ecbuild_check_cxx_source_return(
-    "#include <iostream>\nint main(){ std::cout << sizeof(double);return 0;}"
-    VAR cxx_check_double_final
-    OUTPUT __cxx_sizeof_double_final
-)
-
-if( NOT cxx_check_long_final OR NOT __cxx_sizeof_long_final EQUAL "8" )
-    message( FATAL_ERROR "operating system ${CMAKE_SYSTEM} (${EC_OS_BITS} bits) and sizeof long [${__cxx_sizeof_long_final}] -- long must be 64 bits exactly" )
-elseif( NOT cxx_check_double_final OR NOT __cxx_sizeof_double_final EQUAL "8" )
-    message( FATAL_ERROR "operating system ${CMAKE_SYSTEM} (${EC_OS_BITS} bits) and sizeof double [${__cxx_sizeof_double_final}] -- double must be 64 bits exactly" )
-endif()
-
 check_type_size( long ODC_SIZEOF_LONG )
 check_type_size( double ODC_SIZEOF_DOUBLE )