hyunjin

add test/

1 +cmake_minimum_required(VERSION 3.0)
2 +project(zmqrpc)
3 +find_package(Git REQUIRED)
4 +if(CMAKE_TOOLCHAIN_FILE)
5 +set(TOOLCHAIN "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
6 +else()
7 +set(TOOLCHAIN "")
8 +endif()
9 +
10 +
11 +project(zmqrpc)
12 +if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
13 + if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.2)
14 + message(FATAL_ERROR "GCC version must be at least 7.2!")
15 + endif()
16 +endif()
17 +
18 +add_compile_options(-std=c++17)
19 +add_compile_options(-O4)
20 +
21 +include(ExternalProject)
22 +
23 +ExternalProject_Add (
24 + cppzmq
25 + GIT_REPOSITORY https://github.com/zeromq/cppzmq.git
26 + GIT_TAG v4.3.0
27 + UPDATE_COMMAND ""
28 + INSTALL_COMMAND ""
29 + CONFIGURE_COMMAND ""
30 + BUILD_COMMAND ""
31 + CMAKE_ARGS "${TOOLCHAIN}"
32 + PREFIX "${CMAKE_CURRENT_BINARY_DIR}/external/cppzmq"
33 +)
34 +
35 +
36 +ExternalProject_Add (
37 + zmq
38 + BUILD_IN_SOURCE 1
39 + URL https://github.com/zeromq/libzmq/releases/download/v4.3.1/zeromq-4.3.1.tar.gz
40 + UPDATE_COMMAND ""
41 + PATCH_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/patches/ip_resolver.cpp ${CMAKE_CURRENT_BINARY_DIR}/external/libzmq/src/zmq/src/
42 + INSTALL_COMMAND make install
43 + CONFIGURE_COMMAND ./configure --without-docs --enable-static --prefix=${CMAKE_CURRENT_BINARY_DIR}/external/libzmq CXX=${CMAKE_CXX_COMPILER} CC=${CMAKE_C_COMPILER} ${CONFIG_HOST}
44 + PREFIX "${CMAKE_CURRENT_BINARY_DIR}/external/libzmq"
45 + BUILD_COMMAND make -j8
46 +)
47 +
48 +
49 +add_library(libzmq STATIC IMPORTED)
50 +set_target_properties(libzmq PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/external/libzmq/lib/libzmq.a)
51 +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
52 +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/external/variant/include)
53 +include_directories(${CMAKE_CURRENT_BINARY_DIR}/external/libzmq/include)
54 +include_directories(${CMAKE_CURRENT_BINARY_DIR}/external/cppzmq/src/cppzmq)
55 +
56 +add_executable(server test/server.cpp)
57 +target_link_libraries(server libzmq pthread rt)
58 +add_dependencies(server zmq cppzmq)
59 +
60 +add_executable(client test/client.cpp)
61 +target_link_libraries(client libzmq pthread rt)
62 +add_dependencies(client zmq cppzmq)
63 +
64 +
1 +# This is the CMakeCache file.
2 +# For build in directory: /home/hyunjin/바탕화면/test/build
3 +# It was generated by CMake: /usr/local/bin/cmake
4 +# You can edit this file to change values found and used by cmake.
5 +# If you do not want to change any of the values, simply exit the editor.
6 +# If you do want to change a value, simply edit, save, and exit the editor.
7 +# The syntax for the file is as follows:
8 +# KEY:TYPE=VALUE
9 +# KEY is the name of a variable in the cache.
10 +# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
11 +# VALUE is the current value for the KEY.
12 +
13 +########################
14 +# EXTERNAL cache entries
15 +########################
16 +
17 +//Path to a program.
18 +CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line
19 +
20 +//Path to a program.
21 +CMAKE_AR:FILEPATH=/usr/bin/ar
22 +
23 +//Choose the type of build, options are: None Debug Release RelWithDebInfo
24 +// MinSizeRel ...
25 +CMAKE_BUILD_TYPE:STRING=
26 +
27 +//Enable/Disable color output during build.
28 +CMAKE_COLOR_MAKEFILE:BOOL=ON
29 +
30 +//CXX compiler
31 +CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
32 +
33 +//A wrapper around 'ar' adding the appropriate '--plugin' option
34 +// for the GCC compiler
35 +CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-5
36 +
37 +//A wrapper around 'ranlib' adding the appropriate '--plugin' option
38 +// for the GCC compiler
39 +CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-5
40 +
41 +//Flags used by the CXX compiler during all build types.
42 +CMAKE_CXX_FLAGS:STRING=
43 +
44 +//Flags used by the CXX compiler during DEBUG builds.
45 +CMAKE_CXX_FLAGS_DEBUG:STRING=-g
46 +
47 +//Flags used by the CXX compiler during MINSIZEREL builds.
48 +CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
49 +
50 +//Flags used by the CXX compiler during RELEASE builds.
51 +CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
52 +
53 +//Flags used by the CXX compiler during RELWITHDEBINFO builds.
54 +CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
55 +
56 +//C compiler
57 +CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
58 +
59 +//A wrapper around 'ar' adding the appropriate '--plugin' option
60 +// for the GCC compiler
61 +CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-5
62 +
63 +//A wrapper around 'ranlib' adding the appropriate '--plugin' option
64 +// for the GCC compiler
65 +CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-5
66 +
67 +//Flags used by the C compiler during all build types.
68 +CMAKE_C_FLAGS:STRING=
69 +
70 +//Flags used by the C compiler during DEBUG builds.
71 +CMAKE_C_FLAGS_DEBUG:STRING=-g
72 +
73 +//Flags used by the C compiler during MINSIZEREL builds.
74 +CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
75 +
76 +//Flags used by the C compiler during RELEASE builds.
77 +CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
78 +
79 +//Flags used by the C compiler during RELWITHDEBINFO builds.
80 +CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
81 +
82 +//Path to a program.
83 +CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND
84 +
85 +//Flags used by the linker during all build types.
86 +CMAKE_EXE_LINKER_FLAGS:STRING=
87 +
88 +//Flags used by the linker during DEBUG builds.
89 +CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
90 +
91 +//Flags used by the linker during MINSIZEREL builds.
92 +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
93 +
94 +//Flags used by the linker during RELEASE builds.
95 +CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
96 +
97 +//Flags used by the linker during RELWITHDEBINFO builds.
98 +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
99 +
100 +//Enable/Disable output of compile commands during generation.
101 +CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=
102 +
103 +//Install path prefix, prepended onto install directories.
104 +CMAKE_INSTALL_PREFIX:PATH=/usr/local
105 +
106 +//Path to a program.
107 +CMAKE_LINKER:FILEPATH=/usr/bin/ld
108 +
109 +//Path to a program.
110 +CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
111 +
112 +//Flags used by the linker during the creation of modules during
113 +// all build types.
114 +CMAKE_MODULE_LINKER_FLAGS:STRING=
115 +
116 +//Flags used by the linker during the creation of modules during
117 +// DEBUG builds.
118 +CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
119 +
120 +//Flags used by the linker during the creation of modules during
121 +// MINSIZEREL builds.
122 +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
123 +
124 +//Flags used by the linker during the creation of modules during
125 +// RELEASE builds.
126 +CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
127 +
128 +//Flags used by the linker during the creation of modules during
129 +// RELWITHDEBINFO builds.
130 +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
131 +
132 +//Path to a program.
133 +CMAKE_NM:FILEPATH=/usr/bin/nm
134 +
135 +//Path to a program.
136 +CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
137 +
138 +//Path to a program.
139 +CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
140 +
141 +//Value Computed by CMake
142 +CMAKE_PROJECT_DESCRIPTION:STATIC=
143 +
144 +//Value Computed by CMake
145 +CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
146 +
147 +//Value Computed by CMake
148 +CMAKE_PROJECT_NAME:STATIC=zmqrpc
149 +
150 +//Path to a program.
151 +CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
152 +
153 +//Path to a program.
154 +CMAKE_READELF:FILEPATH=/usr/bin/readelf
155 +
156 +//Flags used by the linker during the creation of shared libraries
157 +// during all build types.
158 +CMAKE_SHARED_LINKER_FLAGS:STRING=
159 +
160 +//Flags used by the linker during the creation of shared libraries
161 +// during DEBUG builds.
162 +CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
163 +
164 +//Flags used by the linker during the creation of shared libraries
165 +// during MINSIZEREL builds.
166 +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
167 +
168 +//Flags used by the linker during the creation of shared libraries
169 +// during RELEASE builds.
170 +CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
171 +
172 +//Flags used by the linker during the creation of shared libraries
173 +// during RELWITHDEBINFO builds.
174 +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
175 +
176 +//If set, runtime paths are not added when installing shared libraries,
177 +// but are added when building.
178 +CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
179 +
180 +//If set, runtime paths are not added when using shared libraries.
181 +CMAKE_SKIP_RPATH:BOOL=NO
182 +
183 +//Flags used by the linker during the creation of static libraries
184 +// during all build types.
185 +CMAKE_STATIC_LINKER_FLAGS:STRING=
186 +
187 +//Flags used by the linker during the creation of static libraries
188 +// during DEBUG builds.
189 +CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
190 +
191 +//Flags used by the linker during the creation of static libraries
192 +// during MINSIZEREL builds.
193 +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
194 +
195 +//Flags used by the linker during the creation of static libraries
196 +// during RELEASE builds.
197 +CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
198 +
199 +//Flags used by the linker during the creation of static libraries
200 +// during RELWITHDEBINFO builds.
201 +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
202 +
203 +//Path to a program.
204 +CMAKE_STRIP:FILEPATH=/usr/bin/strip
205 +
206 +//If this value is on, makefiles will be generated without the
207 +// .SILENT directive, and all commands will be echoed to the console
208 +// during the make. This is useful for debugging only. With Visual
209 +// Studio IDE projects all commands are done without /nologo.
210 +CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
211 +
212 +//Git command line client
213 +GIT_EXECUTABLE:FILEPATH=/usr/bin/git
214 +
215 +//Value Computed by CMake
216 +zmqrpc_BINARY_DIR:STATIC=/home/hyunjin/바탕화면/test/build
217 +
218 +//Value Computed by CMake
219 +zmqrpc_IS_TOP_LEVEL:STATIC=ON
220 +
221 +//Value Computed by CMake
222 +zmqrpc_SOURCE_DIR:STATIC=/home/hyunjin/바탕화면/test
223 +
224 +
225 +########################
226 +# INTERNAL cache entries
227 +########################
228 +
229 +//ADVANCED property for variable: CMAKE_ADDR2LINE
230 +CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
231 +//ADVANCED property for variable: CMAKE_AR
232 +CMAKE_AR-ADVANCED:INTERNAL=1
233 +//This is the directory where this CMakeCache.txt was created
234 +CMAKE_CACHEFILE_DIR:INTERNAL=/home/hyunjin/바탕화면/test/build
235 +//Major version of cmake used to create the current loaded cache
236 +CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
237 +//Minor version of cmake used to create the current loaded cache
238 +CMAKE_CACHE_MINOR_VERSION:INTERNAL=23
239 +//Patch version of cmake used to create the current loaded cache
240 +CMAKE_CACHE_PATCH_VERSION:INTERNAL=2
241 +//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
242 +CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
243 +//Path to CMake executable.
244 +CMAKE_COMMAND:INTERNAL=/usr/local/bin/cmake
245 +//Path to cpack program executable.
246 +CMAKE_CPACK_COMMAND:INTERNAL=/usr/local/bin/cpack
247 +//Path to ctest program executable.
248 +CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/bin/ctest
249 +//ADVANCED property for variable: CMAKE_CXX_COMPILER
250 +CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
251 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR
252 +CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1
253 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB
254 +CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1
255 +//ADVANCED property for variable: CMAKE_CXX_FLAGS
256 +CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
257 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
258 +CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
259 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
260 +CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
261 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
262 +CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
263 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
264 +CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
265 +//ADVANCED property for variable: CMAKE_C_COMPILER
266 +CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
267 +//ADVANCED property for variable: CMAKE_C_COMPILER_AR
268 +CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1
269 +//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB
270 +CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1
271 +//ADVANCED property for variable: CMAKE_C_FLAGS
272 +CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
273 +//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
274 +CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
275 +//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
276 +CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
277 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
278 +CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
279 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
280 +CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
281 +//ADVANCED property for variable: CMAKE_DLLTOOL
282 +CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
283 +//Path to cache edit program executable.
284 +CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/bin/ccmake
285 +//Executable file format
286 +CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
287 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
288 +CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
289 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
290 +CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
291 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
292 +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
293 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
294 +CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
295 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
296 +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
297 +//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
298 +CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
299 +//Name of external makefile project generator.
300 +CMAKE_EXTRA_GENERATOR:INTERNAL=
301 +//Name of generator.
302 +CMAKE_GENERATOR:INTERNAL=Unix Makefiles
303 +//Generator instance identifier.
304 +CMAKE_GENERATOR_INSTANCE:INTERNAL=
305 +//Name of generator platform.
306 +CMAKE_GENERATOR_PLATFORM:INTERNAL=
307 +//Name of generator toolset.
308 +CMAKE_GENERATOR_TOOLSET:INTERNAL=
309 +//Source directory with the top level CMakeLists.txt file for this
310 +// project
311 +CMAKE_HOME_DIRECTORY:INTERNAL=/home/hyunjin/바탕화면/test
312 +//Install .so files without execute permission.
313 +CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
314 +//ADVANCED property for variable: CMAKE_LINKER
315 +CMAKE_LINKER-ADVANCED:INTERNAL=1
316 +//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
317 +CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
318 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
319 +CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
320 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
321 +CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
322 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
323 +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
324 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
325 +CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
326 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
327 +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
328 +//ADVANCED property for variable: CMAKE_NM
329 +CMAKE_NM-ADVANCED:INTERNAL=1
330 +//number of local generators
331 +CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
332 +//ADVANCED property for variable: CMAKE_OBJCOPY
333 +CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
334 +//ADVANCED property for variable: CMAKE_OBJDUMP
335 +CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
336 +//Platform information initialized
337 +CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
338 +//ADVANCED property for variable: CMAKE_RANLIB
339 +CMAKE_RANLIB-ADVANCED:INTERNAL=1
340 +//ADVANCED property for variable: CMAKE_READELF
341 +CMAKE_READELF-ADVANCED:INTERNAL=1
342 +//Path to CMake installation.
343 +CMAKE_ROOT:INTERNAL=/usr/local/share/cmake-3.23
344 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
345 +CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
346 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
347 +CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
348 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
349 +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
350 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
351 +CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
352 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
353 +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
354 +//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
355 +CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
356 +//ADVANCED property for variable: CMAKE_SKIP_RPATH
357 +CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
358 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
359 +CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
360 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
361 +CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
362 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
363 +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
364 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
365 +CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
366 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
367 +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
368 +//ADVANCED property for variable: CMAKE_STRIP
369 +CMAKE_STRIP-ADVANCED:INTERNAL=1
370 +//uname command
371 +CMAKE_UNAME:INTERNAL=/bin/uname
372 +//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
373 +CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
374 +//Details about finding Git
375 +FIND_PACKAGE_MESSAGE_DETAILS_Git:INTERNAL=[/usr/bin/git][v2.7.4()]
376 +//ADVANCED property for variable: GIT_EXECUTABLE
377 +GIT_EXECUTABLE-ADVANCED:INTERNAL=1
378 +
1 +set(CMAKE_C_COMPILER "/usr/bin/cc")
2 +set(CMAKE_C_COMPILER_ARG1 "")
3 +set(CMAKE_C_COMPILER_ID "GNU")
4 +set(CMAKE_C_COMPILER_VERSION "5.4.0")
5 +set(CMAKE_C_COMPILER_VERSION_INTERNAL "")
6 +set(CMAKE_C_COMPILER_WRAPPER "")
7 +set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11")
8 +set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "ON")
9 +set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert")
10 +set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")
11 +set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")
12 +set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert")
13 +set(CMAKE_C17_COMPILE_FEATURES "")
14 +set(CMAKE_C23_COMPILE_FEATURES "")
15 +
16 +set(CMAKE_C_PLATFORM_ID "Linux")
17 +set(CMAKE_C_SIMULATE_ID "")
18 +set(CMAKE_C_COMPILER_FRONTEND_VARIANT "")
19 +set(CMAKE_C_SIMULATE_VERSION "")
20 +
21 +
22 +
23 +
24 +set(CMAKE_AR "/usr/bin/ar")
25 +set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-5")
26 +set(CMAKE_RANLIB "/usr/bin/ranlib")
27 +set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-5")
28 +set(CMAKE_LINKER "/usr/bin/ld")
29 +set(CMAKE_MT "")
30 +set(CMAKE_COMPILER_IS_GNUCC 1)
31 +set(CMAKE_C_COMPILER_LOADED 1)
32 +set(CMAKE_C_COMPILER_WORKS TRUE)
33 +set(CMAKE_C_ABI_COMPILED TRUE)
34 +
35 +set(CMAKE_C_COMPILER_ENV_VAR "CC")
36 +
37 +set(CMAKE_C_COMPILER_ID_RUN 1)
38 +set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
39 +set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
40 +set(CMAKE_C_LINKER_PREFERENCE 10)
41 +
42 +# Save compiler ABI information.
43 +set(CMAKE_C_SIZEOF_DATA_PTR "8")
44 +set(CMAKE_C_COMPILER_ABI "ELF")
45 +set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN")
46 +set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
47 +
48 +if(CMAKE_C_SIZEOF_DATA_PTR)
49 + set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
50 +endif()
51 +
52 +if(CMAKE_C_COMPILER_ABI)
53 + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
54 +endif()
55 +
56 +if(CMAKE_C_LIBRARY_ARCHITECTURE)
57 + set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
58 +endif()
59 +
60 +set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
61 +if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
62 + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
63 +endif()
64 +
65 +
66 +
67 +
68 +
69 +set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/5/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include")
70 +set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s")
71 +set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib")
72 +set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
1 +set(CMAKE_CXX_COMPILER "/usr/bin/c++")
2 +set(CMAKE_CXX_COMPILER_ARG1 "")
3 +set(CMAKE_CXX_COMPILER_ID "GNU")
4 +set(CMAKE_CXX_COMPILER_VERSION "5.4.0")
5 +set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
6 +set(CMAKE_CXX_COMPILER_WRAPPER "")
7 +set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "98")
8 +set(CMAKE_CXX_EXTENSIONS_COMPUTED_DEFAULT "ON")
9 +set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17")
10 +set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
11 +set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
12 +set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
13 +set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
14 +set(CMAKE_CXX20_COMPILE_FEATURES "")
15 +set(CMAKE_CXX23_COMPILE_FEATURES "")
16 +
17 +set(CMAKE_CXX_PLATFORM_ID "Linux")
18 +set(CMAKE_CXX_SIMULATE_ID "")
19 +set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "")
20 +set(CMAKE_CXX_SIMULATE_VERSION "")
21 +
22 +
23 +
24 +
25 +set(CMAKE_AR "/usr/bin/ar")
26 +set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar-5")
27 +set(CMAKE_RANLIB "/usr/bin/ranlib")
28 +set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib-5")
29 +set(CMAKE_LINKER "/usr/bin/ld")
30 +set(CMAKE_MT "")
31 +set(CMAKE_COMPILER_IS_GNUCXX 1)
32 +set(CMAKE_CXX_COMPILER_LOADED 1)
33 +set(CMAKE_CXX_COMPILER_WORKS TRUE)
34 +set(CMAKE_CXX_ABI_COMPILED TRUE)
35 +
36 +set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
37 +
38 +set(CMAKE_CXX_COMPILER_ID_RUN 1)
39 +set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm)
40 +set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
41 +
42 +foreach (lang C OBJC OBJCXX)
43 + if (CMAKE_${lang}_COMPILER_ID_RUN)
44 + foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
45 + list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
46 + endforeach()
47 + endif()
48 +endforeach()
49 +
50 +set(CMAKE_CXX_LINKER_PREFERENCE 30)
51 +set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
52 +
53 +# Save compiler ABI information.
54 +set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
55 +set(CMAKE_CXX_COMPILER_ABI "ELF")
56 +set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")
57 +set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
58 +
59 +if(CMAKE_CXX_SIZEOF_DATA_PTR)
60 + set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
61 +endif()
62 +
63 +if(CMAKE_CXX_COMPILER_ABI)
64 + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
65 +endif()
66 +
67 +if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
68 + set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
69 +endif()
70 +
71 +set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
72 +if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
73 + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
74 +endif()
75 +
76 +
77 +
78 +
79 +
80 +set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/5;/usr/include/x86_64-linux-gnu/c++/5;/usr/include/c++/5/backward;/usr/lib/gcc/x86_64-linux-gnu/5/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include")
81 +set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc")
82 +set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib")
83 +set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
1 +set(CMAKE_HOST_SYSTEM "Linux-4.15.0-112-generic")
2 +set(CMAKE_HOST_SYSTEM_NAME "Linux")
3 +set(CMAKE_HOST_SYSTEM_VERSION "4.15.0-112-generic")
4 +set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
5 +
6 +
7 +
8 +set(CMAKE_SYSTEM "Linux-4.15.0-112-generic")
9 +set(CMAKE_SYSTEM_NAME "Linux")
10 +set(CMAKE_SYSTEM_VERSION "4.15.0-112-generic")
11 +set(CMAKE_SYSTEM_PROCESSOR "x86_64")
12 +
13 +set(CMAKE_CROSSCOMPILING "FALSE")
14 +
15 +set(CMAKE_SYSTEM_LOADED 1)
1 +#ifdef __cplusplus
2 +# error "A C++ compiler has been selected for C."
3 +#endif
4 +
5 +#if defined(__18CXX)
6 +# define ID_VOID_MAIN
7 +#endif
8 +#if defined(__CLASSIC_C__)
9 +/* cv-qualifiers did not exist in K&R C */
10 +# define const
11 +# define volatile
12 +#endif
13 +
14 +#if !defined(__has_include)
15 +/* If the compiler does not have __has_include, pretend the answer is
16 + always no. */
17 +# define __has_include(x) 0
18 +#endif
19 +
20 +
21 +/* Version number components: V=Version, R=Revision, P=Patch
22 + Version date components: YYYY=Year, MM=Month, DD=Day */
23 +
24 +#if defined(__INTEL_COMPILER) || defined(__ICC)
25 +# define COMPILER_ID "Intel"
26 +# if defined(_MSC_VER)
27 +# define SIMULATE_ID "MSVC"
28 +# endif
29 +# if defined(__GNUC__)
30 +# define SIMULATE_ID "GNU"
31 +# endif
32 + /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
33 + except that a few beta releases use the old format with V=2021. */
34 +# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
35 +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
36 +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
37 +# if defined(__INTEL_COMPILER_UPDATE)
38 +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
39 +# else
40 +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
41 +# endif
42 +# else
43 +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
44 +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
45 + /* The third version component from --version is an update index,
46 + but no macro is provided for it. */
47 +# define COMPILER_VERSION_PATCH DEC(0)
48 +# endif
49 +# if defined(__INTEL_COMPILER_BUILD_DATE)
50 + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
51 +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
52 +# endif
53 +# if defined(_MSC_VER)
54 + /* _MSC_VER = VVRR */
55 +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
56 +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
57 +# endif
58 +# if defined(__GNUC__)
59 +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
60 +# elif defined(__GNUG__)
61 +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
62 +# endif
63 +# if defined(__GNUC_MINOR__)
64 +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
65 +# endif
66 +# if defined(__GNUC_PATCHLEVEL__)
67 +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
68 +# endif
69 +
70 +#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
71 +# define COMPILER_ID "IntelLLVM"
72 +#if defined(_MSC_VER)
73 +# define SIMULATE_ID "MSVC"
74 +#endif
75 +#if defined(__GNUC__)
76 +# define SIMULATE_ID "GNU"
77 +#endif
78 +/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
79 + * later. Look for 6 digit vs. 8 digit version number to decide encoding.
80 + * VVVV is no smaller than the current year when a version is released.
81 + */
82 +#if __INTEL_LLVM_COMPILER < 1000000L
83 +# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
84 +# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
85 +# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
86 +#else
87 +# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
88 +# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
89 +# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
90 +#endif
91 +#if defined(_MSC_VER)
92 + /* _MSC_VER = VVRR */
93 +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
94 +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
95 +#endif
96 +#if defined(__GNUC__)
97 +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
98 +#elif defined(__GNUG__)
99 +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
100 +#endif
101 +#if defined(__GNUC_MINOR__)
102 +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
103 +#endif
104 +#if defined(__GNUC_PATCHLEVEL__)
105 +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
106 +#endif
107 +
108 +#elif defined(__PATHCC__)
109 +# define COMPILER_ID "PathScale"
110 +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
111 +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
112 +# if defined(__PATHCC_PATCHLEVEL__)
113 +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
114 +# endif
115 +
116 +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
117 +# define COMPILER_ID "Embarcadero"
118 +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
119 +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
120 +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
121 +
122 +#elif defined(__BORLANDC__)
123 +# define COMPILER_ID "Borland"
124 + /* __BORLANDC__ = 0xVRR */
125 +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
126 +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
127 +
128 +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
129 +# define COMPILER_ID "Watcom"
130 + /* __WATCOMC__ = VVRR */
131 +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
132 +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
133 +# if (__WATCOMC__ % 10) > 0
134 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
135 +# endif
136 +
137 +#elif defined(__WATCOMC__)
138 +# define COMPILER_ID "OpenWatcom"
139 + /* __WATCOMC__ = VVRP + 1100 */
140 +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
141 +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
142 +# if (__WATCOMC__ % 10) > 0
143 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
144 +# endif
145 +
146 +#elif defined(__SUNPRO_C)
147 +# define COMPILER_ID "SunPro"
148 +# if __SUNPRO_C >= 0x5100
149 + /* __SUNPRO_C = 0xVRRP */
150 +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)
151 +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)
152 +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
153 +# else
154 + /* __SUNPRO_CC = 0xVRP */
155 +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)
156 +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)
157 +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
158 +# endif
159 +
160 +#elif defined(__HP_cc)
161 +# define COMPILER_ID "HP"
162 + /* __HP_cc = VVRRPP */
163 +# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)
164 +# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)
165 +# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)
166 +
167 +#elif defined(__DECC)
168 +# define COMPILER_ID "Compaq"
169 + /* __DECC_VER = VVRRTPPPP */
170 +# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
171 +# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
172 +# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
173 +
174 +#elif defined(__IBMC__) && defined(__COMPILER_VER__)
175 +# define COMPILER_ID "zOS"
176 + /* __IBMC__ = VRP */
177 +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
178 +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
179 +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
180 +
181 +#elif defined(__open_xl__) && defined(__clang__)
182 +# define COMPILER_ID "IBMClang"
183 +# define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
184 +# define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
185 +# define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
186 +# define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
187 +
188 +
189 +#elif defined(__ibmxl__) && defined(__clang__)
190 +# define COMPILER_ID "XLClang"
191 +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
192 +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
193 +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
194 +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
195 +
196 +
197 +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800
198 +# define COMPILER_ID "XL"
199 + /* __IBMC__ = VRP */
200 +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
201 +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
202 +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
203 +
204 +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800
205 +# define COMPILER_ID "VisualAge"
206 + /* __IBMC__ = VRP */
207 +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
208 +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
209 +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
210 +
211 +#elif defined(__NVCOMPILER)
212 +# define COMPILER_ID "NVHPC"
213 +# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
214 +# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
215 +# if defined(__NVCOMPILER_PATCHLEVEL__)
216 +# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
217 +# endif
218 +
219 +#elif defined(__PGI)
220 +# define COMPILER_ID "PGI"
221 +# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
222 +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
223 +# if defined(__PGIC_PATCHLEVEL__)
224 +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
225 +# endif
226 +
227 +#elif defined(_CRAYC)
228 +# define COMPILER_ID "Cray"
229 +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
230 +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
231 +
232 +#elif defined(__TI_COMPILER_VERSION__)
233 +# define COMPILER_ID "TI"
234 + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
235 +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
236 +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
237 +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
238 +
239 +#elif defined(__CLANG_FUJITSU)
240 +# define COMPILER_ID "FujitsuClang"
241 +# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
242 +# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
243 +# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
244 +# define COMPILER_VERSION_INTERNAL_STR __clang_version__
245 +
246 +
247 +#elif defined(__FUJITSU)
248 +# define COMPILER_ID "Fujitsu"
249 +# if defined(__FCC_version__)
250 +# define COMPILER_VERSION __FCC_version__
251 +# elif defined(__FCC_major__)
252 +# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
253 +# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
254 +# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
255 +# endif
256 +# if defined(__fcc_version)
257 +# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
258 +# elif defined(__FCC_VERSION)
259 +# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
260 +# endif
261 +
262 +
263 +#elif defined(__ghs__)
264 +# define COMPILER_ID "GHS"
265 +/* __GHS_VERSION_NUMBER = VVVVRP */
266 +# ifdef __GHS_VERSION_NUMBER
267 +# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
268 +# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
269 +# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
270 +# endif
271 +
272 +#elif defined(__TINYC__)
273 +# define COMPILER_ID "TinyCC"
274 +
275 +#elif defined(__BCC__)
276 +# define COMPILER_ID "Bruce"
277 +
278 +#elif defined(__SCO_VERSION__)
279 +# define COMPILER_ID "SCO"
280 +
281 +#elif defined(__ARMCC_VERSION) && !defined(__clang__)
282 +# define COMPILER_ID "ARMCC"
283 +#if __ARMCC_VERSION >= 1000000
284 + /* __ARMCC_VERSION = VRRPPPP */
285 + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
286 + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
287 + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
288 +#else
289 + /* __ARMCC_VERSION = VRPPPP */
290 + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
291 + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
292 + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
293 +#endif
294 +
295 +
296 +#elif defined(__clang__) && defined(__apple_build_version__)
297 +# define COMPILER_ID "AppleClang"
298 +# if defined(_MSC_VER)
299 +# define SIMULATE_ID "MSVC"
300 +# endif
301 +# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
302 +# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
303 +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
304 +# if defined(_MSC_VER)
305 + /* _MSC_VER = VVRR */
306 +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
307 +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
308 +# endif
309 +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
310 +
311 +#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
312 +# define COMPILER_ID "ARMClang"
313 + # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
314 + # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
315 + # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
316 +# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
317 +
318 +#elif defined(__clang__)
319 +# define COMPILER_ID "Clang"
320 +# if defined(_MSC_VER)
321 +# define SIMULATE_ID "MSVC"
322 +# endif
323 +# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
324 +# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
325 +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
326 +# if defined(_MSC_VER)
327 + /* _MSC_VER = VVRR */
328 +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
329 +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
330 +# endif
331 +
332 +#elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
333 +# define COMPILER_ID "LCC"
334 +# define COMPILER_VERSION_MAJOR DEC(1)
335 +# if defined(__LCC__)
336 +# define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
337 +# endif
338 +# if defined(__LCC_MINOR__)
339 +# define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
340 +# endif
341 +# if defined(__GNUC__) && defined(__GNUC_MINOR__)
342 +# define SIMULATE_ID "GNU"
343 +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
344 +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
345 +# if defined(__GNUC_PATCHLEVEL__)
346 +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
347 +# endif
348 +# endif
349 +
350 +#elif defined(__GNUC__)
351 +# define COMPILER_ID "GNU"
352 +# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
353 +# if defined(__GNUC_MINOR__)
354 +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
355 +# endif
356 +# if defined(__GNUC_PATCHLEVEL__)
357 +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
358 +# endif
359 +
360 +#elif defined(_MSC_VER)
361 +# define COMPILER_ID "MSVC"
362 + /* _MSC_VER = VVRR */
363 +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
364 +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
365 +# if defined(_MSC_FULL_VER)
366 +# if _MSC_VER >= 1400
367 + /* _MSC_FULL_VER = VVRRPPPPP */
368 +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
369 +# else
370 + /* _MSC_FULL_VER = VVRRPPPP */
371 +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
372 +# endif
373 +# endif
374 +# if defined(_MSC_BUILD)
375 +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
376 +# endif
377 +
378 +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
379 +# define COMPILER_ID "ADSP"
380 +#if defined(__VISUALDSPVERSION__)
381 + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
382 +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
383 +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
384 +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
385 +#endif
386 +
387 +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
388 +# define COMPILER_ID "IAR"
389 +# if defined(__VER__) && defined(__ICCARM__)
390 +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
391 +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
392 +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
393 +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
394 +# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
395 +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
396 +# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
397 +# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
398 +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
399 +# endif
400 +
401 +#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC)
402 +# define COMPILER_ID "SDCC"
403 +# if defined(__SDCC_VERSION_MAJOR)
404 +# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR)
405 +# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR)
406 +# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH)
407 +# else
408 + /* SDCC = VRP */
409 +# define COMPILER_VERSION_MAJOR DEC(SDCC/100)
410 +# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)
411 +# define COMPILER_VERSION_PATCH DEC(SDCC % 10)
412 +# endif
413 +
414 +
415 +/* These compilers are either not known or too old to define an
416 + identification macro. Try to identify the platform and guess that
417 + it is the native compiler. */
418 +#elif defined(__hpux) || defined(__hpua)
419 +# define COMPILER_ID "HP"
420 +
421 +#else /* unknown compiler */
422 +# define COMPILER_ID ""
423 +#endif
424 +
425 +/* Construct the string literal in pieces to prevent the source from
426 + getting matched. Store it in a pointer rather than an array
427 + because some compilers will just produce instructions to fill the
428 + array rather than assigning a pointer to a static array. */
429 +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
430 +#ifdef SIMULATE_ID
431 +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
432 +#endif
433 +
434 +#ifdef __QNXNTO__
435 +char const* qnxnto = "INFO" ":" "qnxnto[]";
436 +#endif
437 +
438 +#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
439 +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
440 +#endif
441 +
442 +#define STRINGIFY_HELPER(X) #X
443 +#define STRINGIFY(X) STRINGIFY_HELPER(X)
444 +
445 +/* Identify known platforms by name. */
446 +#if defined(__linux) || defined(__linux__) || defined(linux)
447 +# define PLATFORM_ID "Linux"
448 +
449 +#elif defined(__MSYS__)
450 +# define PLATFORM_ID "MSYS"
451 +
452 +#elif defined(__CYGWIN__)
453 +# define PLATFORM_ID "Cygwin"
454 +
455 +#elif defined(__MINGW32__)
456 +# define PLATFORM_ID "MinGW"
457 +
458 +#elif defined(__APPLE__)
459 +# define PLATFORM_ID "Darwin"
460 +
461 +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
462 +# define PLATFORM_ID "Windows"
463 +
464 +#elif defined(__FreeBSD__) || defined(__FreeBSD)
465 +# define PLATFORM_ID "FreeBSD"
466 +
467 +#elif defined(__NetBSD__) || defined(__NetBSD)
468 +# define PLATFORM_ID "NetBSD"
469 +
470 +#elif defined(__OpenBSD__) || defined(__OPENBSD)
471 +# define PLATFORM_ID "OpenBSD"
472 +
473 +#elif defined(__sun) || defined(sun)
474 +# define PLATFORM_ID "SunOS"
475 +
476 +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
477 +# define PLATFORM_ID "AIX"
478 +
479 +#elif defined(__hpux) || defined(__hpux__)
480 +# define PLATFORM_ID "HP-UX"
481 +
482 +#elif defined(__HAIKU__)
483 +# define PLATFORM_ID "Haiku"
484 +
485 +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
486 +# define PLATFORM_ID "BeOS"
487 +
488 +#elif defined(__QNX__) || defined(__QNXNTO__)
489 +# define PLATFORM_ID "QNX"
490 +
491 +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
492 +# define PLATFORM_ID "Tru64"
493 +
494 +#elif defined(__riscos) || defined(__riscos__)
495 +# define PLATFORM_ID "RISCos"
496 +
497 +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
498 +# define PLATFORM_ID "SINIX"
499 +
500 +#elif defined(__UNIX_SV__)
501 +# define PLATFORM_ID "UNIX_SV"
502 +
503 +#elif defined(__bsdos__)
504 +# define PLATFORM_ID "BSDOS"
505 +
506 +#elif defined(_MPRAS) || defined(MPRAS)
507 +# define PLATFORM_ID "MP-RAS"
508 +
509 +#elif defined(__osf) || defined(__osf__)
510 +# define PLATFORM_ID "OSF1"
511 +
512 +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
513 +# define PLATFORM_ID "SCO_SV"
514 +
515 +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
516 +# define PLATFORM_ID "ULTRIX"
517 +
518 +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
519 +# define PLATFORM_ID "Xenix"
520 +
521 +#elif defined(__WATCOMC__)
522 +# if defined(__LINUX__)
523 +# define PLATFORM_ID "Linux"
524 +
525 +# elif defined(__DOS__)
526 +# define PLATFORM_ID "DOS"
527 +
528 +# elif defined(__OS2__)
529 +# define PLATFORM_ID "OS2"
530 +
531 +# elif defined(__WINDOWS__)
532 +# define PLATFORM_ID "Windows3x"
533 +
534 +# elif defined(__VXWORKS__)
535 +# define PLATFORM_ID "VxWorks"
536 +
537 +# else /* unknown platform */
538 +# define PLATFORM_ID
539 +# endif
540 +
541 +#elif defined(__INTEGRITY)
542 +# if defined(INT_178B)
543 +# define PLATFORM_ID "Integrity178"
544 +
545 +# else /* regular Integrity */
546 +# define PLATFORM_ID "Integrity"
547 +# endif
548 +
549 +#else /* unknown platform */
550 +# define PLATFORM_ID
551 +
552 +#endif
553 +
554 +/* For windows compilers MSVC and Intel we can determine
555 + the architecture of the compiler being used. This is because
556 + the compilers do not have flags that can change the architecture,
557 + but rather depend on which compiler is being used
558 +*/
559 +#if defined(_WIN32) && defined(_MSC_VER)
560 +# if defined(_M_IA64)
561 +# define ARCHITECTURE_ID "IA64"
562 +
563 +# elif defined(_M_ARM64EC)
564 +# define ARCHITECTURE_ID "ARM64EC"
565 +
566 +# elif defined(_M_X64) || defined(_M_AMD64)
567 +# define ARCHITECTURE_ID "x64"
568 +
569 +# elif defined(_M_IX86)
570 +# define ARCHITECTURE_ID "X86"
571 +
572 +# elif defined(_M_ARM64)
573 +# define ARCHITECTURE_ID "ARM64"
574 +
575 +# elif defined(_M_ARM)
576 +# if _M_ARM == 4
577 +# define ARCHITECTURE_ID "ARMV4I"
578 +# elif _M_ARM == 5
579 +# define ARCHITECTURE_ID "ARMV5I"
580 +# else
581 +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
582 +# endif
583 +
584 +# elif defined(_M_MIPS)
585 +# define ARCHITECTURE_ID "MIPS"
586 +
587 +# elif defined(_M_SH)
588 +# define ARCHITECTURE_ID "SHx"
589 +
590 +# else /* unknown architecture */
591 +# define ARCHITECTURE_ID ""
592 +# endif
593 +
594 +#elif defined(__WATCOMC__)
595 +# if defined(_M_I86)
596 +# define ARCHITECTURE_ID "I86"
597 +
598 +# elif defined(_M_IX86)
599 +# define ARCHITECTURE_ID "X86"
600 +
601 +# else /* unknown architecture */
602 +# define ARCHITECTURE_ID ""
603 +# endif
604 +
605 +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
606 +# if defined(__ICCARM__)
607 +# define ARCHITECTURE_ID "ARM"
608 +
609 +# elif defined(__ICCRX__)
610 +# define ARCHITECTURE_ID "RX"
611 +
612 +# elif defined(__ICCRH850__)
613 +# define ARCHITECTURE_ID "RH850"
614 +
615 +# elif defined(__ICCRL78__)
616 +# define ARCHITECTURE_ID "RL78"
617 +
618 +# elif defined(__ICCRISCV__)
619 +# define ARCHITECTURE_ID "RISCV"
620 +
621 +# elif defined(__ICCAVR__)
622 +# define ARCHITECTURE_ID "AVR"
623 +
624 +# elif defined(__ICC430__)
625 +# define ARCHITECTURE_ID "MSP430"
626 +
627 +# elif defined(__ICCV850__)
628 +# define ARCHITECTURE_ID "V850"
629 +
630 +# elif defined(__ICC8051__)
631 +# define ARCHITECTURE_ID "8051"
632 +
633 +# elif defined(__ICCSTM8__)
634 +# define ARCHITECTURE_ID "STM8"
635 +
636 +# else /* unknown architecture */
637 +# define ARCHITECTURE_ID ""
638 +# endif
639 +
640 +#elif defined(__ghs__)
641 +# if defined(__PPC64__)
642 +# define ARCHITECTURE_ID "PPC64"
643 +
644 +# elif defined(__ppc__)
645 +# define ARCHITECTURE_ID "PPC"
646 +
647 +# elif defined(__ARM__)
648 +# define ARCHITECTURE_ID "ARM"
649 +
650 +# elif defined(__x86_64__)
651 +# define ARCHITECTURE_ID "x64"
652 +
653 +# elif defined(__i386__)
654 +# define ARCHITECTURE_ID "X86"
655 +
656 +# else /* unknown architecture */
657 +# define ARCHITECTURE_ID ""
658 +# endif
659 +
660 +#elif defined(__TI_COMPILER_VERSION__)
661 +# if defined(__TI_ARM__)
662 +# define ARCHITECTURE_ID "ARM"
663 +
664 +# elif defined(__MSP430__)
665 +# define ARCHITECTURE_ID "MSP430"
666 +
667 +# elif defined(__TMS320C28XX__)
668 +# define ARCHITECTURE_ID "TMS320C28x"
669 +
670 +# elif defined(__TMS320C6X__) || defined(_TMS320C6X)
671 +# define ARCHITECTURE_ID "TMS320C6x"
672 +
673 +# else /* unknown architecture */
674 +# define ARCHITECTURE_ID ""
675 +# endif
676 +
677 +#else
678 +# define ARCHITECTURE_ID
679 +#endif
680 +
681 +/* Convert integer to decimal digit literals. */
682 +#define DEC(n) \
683 + ('0' + (((n) / 10000000)%10)), \
684 + ('0' + (((n) / 1000000)%10)), \
685 + ('0' + (((n) / 100000)%10)), \
686 + ('0' + (((n) / 10000)%10)), \
687 + ('0' + (((n) / 1000)%10)), \
688 + ('0' + (((n) / 100)%10)), \
689 + ('0' + (((n) / 10)%10)), \
690 + ('0' + ((n) % 10))
691 +
692 +/* Convert integer to hex digit literals. */
693 +#define HEX(n) \
694 + ('0' + ((n)>>28 & 0xF)), \
695 + ('0' + ((n)>>24 & 0xF)), \
696 + ('0' + ((n)>>20 & 0xF)), \
697 + ('0' + ((n)>>16 & 0xF)), \
698 + ('0' + ((n)>>12 & 0xF)), \
699 + ('0' + ((n)>>8 & 0xF)), \
700 + ('0' + ((n)>>4 & 0xF)), \
701 + ('0' + ((n) & 0xF))
702 +
703 +/* Construct a string literal encoding the version number. */
704 +#ifdef COMPILER_VERSION
705 +char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
706 +
707 +/* Construct a string literal encoding the version number components. */
708 +#elif defined(COMPILER_VERSION_MAJOR)
709 +char const info_version[] = {
710 + 'I', 'N', 'F', 'O', ':',
711 + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
712 + COMPILER_VERSION_MAJOR,
713 +# ifdef COMPILER_VERSION_MINOR
714 + '.', COMPILER_VERSION_MINOR,
715 +# ifdef COMPILER_VERSION_PATCH
716 + '.', COMPILER_VERSION_PATCH,
717 +# ifdef COMPILER_VERSION_TWEAK
718 + '.', COMPILER_VERSION_TWEAK,
719 +# endif
720 +# endif
721 +# endif
722 + ']','\0'};
723 +#endif
724 +
725 +/* Construct a string literal encoding the internal version number. */
726 +#ifdef COMPILER_VERSION_INTERNAL
727 +char const info_version_internal[] = {
728 + 'I', 'N', 'F', 'O', ':',
729 + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
730 + 'i','n','t','e','r','n','a','l','[',
731 + COMPILER_VERSION_INTERNAL,']','\0'};
732 +#elif defined(COMPILER_VERSION_INTERNAL_STR)
733 +char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
734 +#endif
735 +
736 +/* Construct a string literal encoding the version number components. */
737 +#ifdef SIMULATE_VERSION_MAJOR
738 +char const info_simulate_version[] = {
739 + 'I', 'N', 'F', 'O', ':',
740 + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
741 + SIMULATE_VERSION_MAJOR,
742 +# ifdef SIMULATE_VERSION_MINOR
743 + '.', SIMULATE_VERSION_MINOR,
744 +# ifdef SIMULATE_VERSION_PATCH
745 + '.', SIMULATE_VERSION_PATCH,
746 +# ifdef SIMULATE_VERSION_TWEAK
747 + '.', SIMULATE_VERSION_TWEAK,
748 +# endif
749 +# endif
750 +# endif
751 + ']','\0'};
752 +#endif
753 +
754 +/* Construct the string literal in pieces to prevent the source from
755 + getting matched. Store it in a pointer rather than an array
756 + because some compilers will just produce instructions to fill the
757 + array rather than assigning a pointer to a static array. */
758 +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
759 +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
760 +
761 +
762 +
763 +#if !defined(__STDC__) && !defined(__clang__)
764 +# if defined(_MSC_VER) || defined(__ibmxl__) || defined(__IBMC__)
765 +# define C_VERSION "90"
766 +# else
767 +# define C_VERSION
768 +# endif
769 +#elif __STDC_VERSION__ > 201710L
770 +# define C_VERSION "23"
771 +#elif __STDC_VERSION__ >= 201710L
772 +# define C_VERSION "17"
773 +#elif __STDC_VERSION__ >= 201000L
774 +# define C_VERSION "11"
775 +#elif __STDC_VERSION__ >= 199901L
776 +# define C_VERSION "99"
777 +#else
778 +# define C_VERSION "90"
779 +#endif
780 +const char* info_language_standard_default =
781 + "INFO" ":" "standard_default[" C_VERSION "]";
782 +
783 +const char* info_language_extensions_default = "INFO" ":" "extensions_default["
784 +#if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
785 + defined(__TI_COMPILER_VERSION__)) && \
786 + !defined(__STRICT_ANSI__)
787 + "ON"
788 +#else
789 + "OFF"
790 +#endif
791 +"]";
792 +
793 +/*--------------------------------------------------------------------------*/
794 +
795 +#ifdef ID_VOID_MAIN
796 +void main() {}
797 +#else
798 +# if defined(__CLASSIC_C__)
799 +int main(argc, argv) int argc; char *argv[];
800 +# else
801 +int main(int argc, char* argv[])
802 +# endif
803 +{
804 + int require = 0;
805 + require += info_compiler[argc];
806 + require += info_platform[argc];
807 + require += info_arch[argc];
808 +#ifdef COMPILER_VERSION_MAJOR
809 + require += info_version[argc];
810 +#endif
811 +#ifdef COMPILER_VERSION_INTERNAL
812 + require += info_version_internal[argc];
813 +#endif
814 +#ifdef SIMULATE_ID
815 + require += info_simulate[argc];
816 +#endif
817 +#ifdef SIMULATE_VERSION_MAJOR
818 + require += info_simulate_version[argc];
819 +#endif
820 +#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
821 + require += info_cray[argc];
822 +#endif
823 + require += info_language_standard_default[argc];
824 + require += info_language_extensions_default[argc];
825 + (void)argv;
826 + return require;
827 +}
828 +#endif
No preview for this file type
1 +/* This source file must have a .cpp extension so that all C++ compilers
2 + recognize the extension without flags. Borland does not know .cxx for
3 + example. */
4 +#ifndef __cplusplus
5 +# error "A C compiler has been selected for C++."
6 +#endif
7 +
8 +#if !defined(__has_include)
9 +/* If the compiler does not have __has_include, pretend the answer is
10 + always no. */
11 +# define __has_include(x) 0
12 +#endif
13 +
14 +
15 +/* Version number components: V=Version, R=Revision, P=Patch
16 + Version date components: YYYY=Year, MM=Month, DD=Day */
17 +
18 +#if defined(__COMO__)
19 +# define COMPILER_ID "Comeau"
20 + /* __COMO_VERSION__ = VRR */
21 +# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
22 +# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
23 +
24 +#elif defined(__INTEL_COMPILER) || defined(__ICC)
25 +# define COMPILER_ID "Intel"
26 +# if defined(_MSC_VER)
27 +# define SIMULATE_ID "MSVC"
28 +# endif
29 +# if defined(__GNUC__)
30 +# define SIMULATE_ID "GNU"
31 +# endif
32 + /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
33 + except that a few beta releases use the old format with V=2021. */
34 +# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
35 +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
36 +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
37 +# if defined(__INTEL_COMPILER_UPDATE)
38 +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
39 +# else
40 +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
41 +# endif
42 +# else
43 +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
44 +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
45 + /* The third version component from --version is an update index,
46 + but no macro is provided for it. */
47 +# define COMPILER_VERSION_PATCH DEC(0)
48 +# endif
49 +# if defined(__INTEL_COMPILER_BUILD_DATE)
50 + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
51 +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
52 +# endif
53 +# if defined(_MSC_VER)
54 + /* _MSC_VER = VVRR */
55 +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
56 +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
57 +# endif
58 +# if defined(__GNUC__)
59 +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
60 +# elif defined(__GNUG__)
61 +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
62 +# endif
63 +# if defined(__GNUC_MINOR__)
64 +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
65 +# endif
66 +# if defined(__GNUC_PATCHLEVEL__)
67 +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
68 +# endif
69 +
70 +#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
71 +# define COMPILER_ID "IntelLLVM"
72 +#if defined(_MSC_VER)
73 +# define SIMULATE_ID "MSVC"
74 +#endif
75 +#if defined(__GNUC__)
76 +# define SIMULATE_ID "GNU"
77 +#endif
78 +/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
79 + * later. Look for 6 digit vs. 8 digit version number to decide encoding.
80 + * VVVV is no smaller than the current year when a version is released.
81 + */
82 +#if __INTEL_LLVM_COMPILER < 1000000L
83 +# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
84 +# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
85 +# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
86 +#else
87 +# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
88 +# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
89 +# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
90 +#endif
91 +#if defined(_MSC_VER)
92 + /* _MSC_VER = VVRR */
93 +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
94 +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
95 +#endif
96 +#if defined(__GNUC__)
97 +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
98 +#elif defined(__GNUG__)
99 +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
100 +#endif
101 +#if defined(__GNUC_MINOR__)
102 +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
103 +#endif
104 +#if defined(__GNUC_PATCHLEVEL__)
105 +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
106 +#endif
107 +
108 +#elif defined(__PATHCC__)
109 +# define COMPILER_ID "PathScale"
110 +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
111 +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
112 +# if defined(__PATHCC_PATCHLEVEL__)
113 +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
114 +# endif
115 +
116 +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
117 +# define COMPILER_ID "Embarcadero"
118 +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
119 +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
120 +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
121 +
122 +#elif defined(__BORLANDC__)
123 +# define COMPILER_ID "Borland"
124 + /* __BORLANDC__ = 0xVRR */
125 +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
126 +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
127 +
128 +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
129 +# define COMPILER_ID "Watcom"
130 + /* __WATCOMC__ = VVRR */
131 +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
132 +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
133 +# if (__WATCOMC__ % 10) > 0
134 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
135 +# endif
136 +
137 +#elif defined(__WATCOMC__)
138 +# define COMPILER_ID "OpenWatcom"
139 + /* __WATCOMC__ = VVRP + 1100 */
140 +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
141 +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
142 +# if (__WATCOMC__ % 10) > 0
143 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
144 +# endif
145 +
146 +#elif defined(__SUNPRO_CC)
147 +# define COMPILER_ID "SunPro"
148 +# if __SUNPRO_CC >= 0x5100
149 + /* __SUNPRO_CC = 0xVRRP */
150 +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
151 +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
152 +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
153 +# else
154 + /* __SUNPRO_CC = 0xVRP */
155 +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
156 +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
157 +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
158 +# endif
159 +
160 +#elif defined(__HP_aCC)
161 +# define COMPILER_ID "HP"
162 + /* __HP_aCC = VVRRPP */
163 +# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
164 +# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
165 +# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
166 +
167 +#elif defined(__DECCXX)
168 +# define COMPILER_ID "Compaq"
169 + /* __DECCXX_VER = VVRRTPPPP */
170 +# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
171 +# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
172 +# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
173 +
174 +#elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
175 +# define COMPILER_ID "zOS"
176 + /* __IBMCPP__ = VRP */
177 +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
178 +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
179 +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
180 +
181 +#elif defined(__open_xl__) && defined(__clang__)
182 +# define COMPILER_ID "IBMClang"
183 +# define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
184 +# define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
185 +# define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
186 +# define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
187 +
188 +
189 +#elif defined(__ibmxl__) && defined(__clang__)
190 +# define COMPILER_ID "XLClang"
191 +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
192 +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
193 +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
194 +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
195 +
196 +
197 +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
198 +# define COMPILER_ID "XL"
199 + /* __IBMCPP__ = VRP */
200 +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
201 +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
202 +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
203 +
204 +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
205 +# define COMPILER_ID "VisualAge"
206 + /* __IBMCPP__ = VRP */
207 +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
208 +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
209 +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
210 +
211 +#elif defined(__NVCOMPILER)
212 +# define COMPILER_ID "NVHPC"
213 +# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
214 +# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
215 +# if defined(__NVCOMPILER_PATCHLEVEL__)
216 +# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
217 +# endif
218 +
219 +#elif defined(__PGI)
220 +# define COMPILER_ID "PGI"
221 +# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
222 +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
223 +# if defined(__PGIC_PATCHLEVEL__)
224 +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
225 +# endif
226 +
227 +#elif defined(_CRAYC)
228 +# define COMPILER_ID "Cray"
229 +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
230 +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
231 +
232 +#elif defined(__TI_COMPILER_VERSION__)
233 +# define COMPILER_ID "TI"
234 + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
235 +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
236 +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
237 +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
238 +
239 +#elif defined(__CLANG_FUJITSU)
240 +# define COMPILER_ID "FujitsuClang"
241 +# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
242 +# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
243 +# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
244 +# define COMPILER_VERSION_INTERNAL_STR __clang_version__
245 +
246 +
247 +#elif defined(__FUJITSU)
248 +# define COMPILER_ID "Fujitsu"
249 +# if defined(__FCC_version__)
250 +# define COMPILER_VERSION __FCC_version__
251 +# elif defined(__FCC_major__)
252 +# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
253 +# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
254 +# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
255 +# endif
256 +# if defined(__fcc_version)
257 +# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
258 +# elif defined(__FCC_VERSION)
259 +# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
260 +# endif
261 +
262 +
263 +#elif defined(__ghs__)
264 +# define COMPILER_ID "GHS"
265 +/* __GHS_VERSION_NUMBER = VVVVRP */
266 +# ifdef __GHS_VERSION_NUMBER
267 +# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
268 +# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
269 +# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
270 +# endif
271 +
272 +#elif defined(__SCO_VERSION__)
273 +# define COMPILER_ID "SCO"
274 +
275 +#elif defined(__ARMCC_VERSION) && !defined(__clang__)
276 +# define COMPILER_ID "ARMCC"
277 +#if __ARMCC_VERSION >= 1000000
278 + /* __ARMCC_VERSION = VRRPPPP */
279 + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
280 + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
281 + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
282 +#else
283 + /* __ARMCC_VERSION = VRPPPP */
284 + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
285 + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
286 + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
287 +#endif
288 +
289 +
290 +#elif defined(__clang__) && defined(__apple_build_version__)
291 +# define COMPILER_ID "AppleClang"
292 +# if defined(_MSC_VER)
293 +# define SIMULATE_ID "MSVC"
294 +# endif
295 +# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
296 +# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
297 +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
298 +# if defined(_MSC_VER)
299 + /* _MSC_VER = VVRR */
300 +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
301 +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
302 +# endif
303 +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
304 +
305 +#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
306 +# define COMPILER_ID "ARMClang"
307 + # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
308 + # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
309 + # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
310 +# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
311 +
312 +#elif defined(__clang__)
313 +# define COMPILER_ID "Clang"
314 +# if defined(_MSC_VER)
315 +# define SIMULATE_ID "MSVC"
316 +# endif
317 +# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
318 +# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
319 +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
320 +# if defined(_MSC_VER)
321 + /* _MSC_VER = VVRR */
322 +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
323 +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
324 +# endif
325 +
326 +#elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
327 +# define COMPILER_ID "LCC"
328 +# define COMPILER_VERSION_MAJOR DEC(1)
329 +# if defined(__LCC__)
330 +# define COMPILER_VERSION_MINOR DEC(__LCC__- 100)
331 +# endif
332 +# if defined(__LCC_MINOR__)
333 +# define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
334 +# endif
335 +# if defined(__GNUC__) && defined(__GNUC_MINOR__)
336 +# define SIMULATE_ID "GNU"
337 +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
338 +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
339 +# if defined(__GNUC_PATCHLEVEL__)
340 +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
341 +# endif
342 +# endif
343 +
344 +#elif defined(__GNUC__) || defined(__GNUG__)
345 +# define COMPILER_ID "GNU"
346 +# if defined(__GNUC__)
347 +# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
348 +# else
349 +# define COMPILER_VERSION_MAJOR DEC(__GNUG__)
350 +# endif
351 +# if defined(__GNUC_MINOR__)
352 +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
353 +# endif
354 +# if defined(__GNUC_PATCHLEVEL__)
355 +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
356 +# endif
357 +
358 +#elif defined(_MSC_VER)
359 +# define COMPILER_ID "MSVC"
360 + /* _MSC_VER = VVRR */
361 +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
362 +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
363 +# if defined(_MSC_FULL_VER)
364 +# if _MSC_VER >= 1400
365 + /* _MSC_FULL_VER = VVRRPPPPP */
366 +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
367 +# else
368 + /* _MSC_FULL_VER = VVRRPPPP */
369 +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
370 +# endif
371 +# endif
372 +# if defined(_MSC_BUILD)
373 +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
374 +# endif
375 +
376 +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
377 +# define COMPILER_ID "ADSP"
378 +#if defined(__VISUALDSPVERSION__)
379 + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */
380 +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
381 +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
382 +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
383 +#endif
384 +
385 +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
386 +# define COMPILER_ID "IAR"
387 +# if defined(__VER__) && defined(__ICCARM__)
388 +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
389 +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
390 +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
391 +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
392 +# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
393 +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
394 +# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
395 +# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
396 +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
397 +# endif
398 +
399 +
400 +/* These compilers are either not known or too old to define an
401 + identification macro. Try to identify the platform and guess that
402 + it is the native compiler. */
403 +#elif defined(__hpux) || defined(__hpua)
404 +# define COMPILER_ID "HP"
405 +
406 +#else /* unknown compiler */
407 +# define COMPILER_ID ""
408 +#endif
409 +
410 +/* Construct the string literal in pieces to prevent the source from
411 + getting matched. Store it in a pointer rather than an array
412 + because some compilers will just produce instructions to fill the
413 + array rather than assigning a pointer to a static array. */
414 +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
415 +#ifdef SIMULATE_ID
416 +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
417 +#endif
418 +
419 +#ifdef __QNXNTO__
420 +char const* qnxnto = "INFO" ":" "qnxnto[]";
421 +#endif
422 +
423 +#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
424 +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
425 +#endif
426 +
427 +#define STRINGIFY_HELPER(X) #X
428 +#define STRINGIFY(X) STRINGIFY_HELPER(X)
429 +
430 +/* Identify known platforms by name. */
431 +#if defined(__linux) || defined(__linux__) || defined(linux)
432 +# define PLATFORM_ID "Linux"
433 +
434 +#elif defined(__MSYS__)
435 +# define PLATFORM_ID "MSYS"
436 +
437 +#elif defined(__CYGWIN__)
438 +# define PLATFORM_ID "Cygwin"
439 +
440 +#elif defined(__MINGW32__)
441 +# define PLATFORM_ID "MinGW"
442 +
443 +#elif defined(__APPLE__)
444 +# define PLATFORM_ID "Darwin"
445 +
446 +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
447 +# define PLATFORM_ID "Windows"
448 +
449 +#elif defined(__FreeBSD__) || defined(__FreeBSD)
450 +# define PLATFORM_ID "FreeBSD"
451 +
452 +#elif defined(__NetBSD__) || defined(__NetBSD)
453 +# define PLATFORM_ID "NetBSD"
454 +
455 +#elif defined(__OpenBSD__) || defined(__OPENBSD)
456 +# define PLATFORM_ID "OpenBSD"
457 +
458 +#elif defined(__sun) || defined(sun)
459 +# define PLATFORM_ID "SunOS"
460 +
461 +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
462 +# define PLATFORM_ID "AIX"
463 +
464 +#elif defined(__hpux) || defined(__hpux__)
465 +# define PLATFORM_ID "HP-UX"
466 +
467 +#elif defined(__HAIKU__)
468 +# define PLATFORM_ID "Haiku"
469 +
470 +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
471 +# define PLATFORM_ID "BeOS"
472 +
473 +#elif defined(__QNX__) || defined(__QNXNTO__)
474 +# define PLATFORM_ID "QNX"
475 +
476 +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
477 +# define PLATFORM_ID "Tru64"
478 +
479 +#elif defined(__riscos) || defined(__riscos__)
480 +# define PLATFORM_ID "RISCos"
481 +
482 +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
483 +# define PLATFORM_ID "SINIX"
484 +
485 +#elif defined(__UNIX_SV__)
486 +# define PLATFORM_ID "UNIX_SV"
487 +
488 +#elif defined(__bsdos__)
489 +# define PLATFORM_ID "BSDOS"
490 +
491 +#elif defined(_MPRAS) || defined(MPRAS)
492 +# define PLATFORM_ID "MP-RAS"
493 +
494 +#elif defined(__osf) || defined(__osf__)
495 +# define PLATFORM_ID "OSF1"
496 +
497 +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
498 +# define PLATFORM_ID "SCO_SV"
499 +
500 +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
501 +# define PLATFORM_ID "ULTRIX"
502 +
503 +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
504 +# define PLATFORM_ID "Xenix"
505 +
506 +#elif defined(__WATCOMC__)
507 +# if defined(__LINUX__)
508 +# define PLATFORM_ID "Linux"
509 +
510 +# elif defined(__DOS__)
511 +# define PLATFORM_ID "DOS"
512 +
513 +# elif defined(__OS2__)
514 +# define PLATFORM_ID "OS2"
515 +
516 +# elif defined(__WINDOWS__)
517 +# define PLATFORM_ID "Windows3x"
518 +
519 +# elif defined(__VXWORKS__)
520 +# define PLATFORM_ID "VxWorks"
521 +
522 +# else /* unknown platform */
523 +# define PLATFORM_ID
524 +# endif
525 +
526 +#elif defined(__INTEGRITY)
527 +# if defined(INT_178B)
528 +# define PLATFORM_ID "Integrity178"
529 +
530 +# else /* regular Integrity */
531 +# define PLATFORM_ID "Integrity"
532 +# endif
533 +
534 +#else /* unknown platform */
535 +# define PLATFORM_ID
536 +
537 +#endif
538 +
539 +/* For windows compilers MSVC and Intel we can determine
540 + the architecture of the compiler being used. This is because
541 + the compilers do not have flags that can change the architecture,
542 + but rather depend on which compiler is being used
543 +*/
544 +#if defined(_WIN32) && defined(_MSC_VER)
545 +# if defined(_M_IA64)
546 +# define ARCHITECTURE_ID "IA64"
547 +
548 +# elif defined(_M_ARM64EC)
549 +# define ARCHITECTURE_ID "ARM64EC"
550 +
551 +# elif defined(_M_X64) || defined(_M_AMD64)
552 +# define ARCHITECTURE_ID "x64"
553 +
554 +# elif defined(_M_IX86)
555 +# define ARCHITECTURE_ID "X86"
556 +
557 +# elif defined(_M_ARM64)
558 +# define ARCHITECTURE_ID "ARM64"
559 +
560 +# elif defined(_M_ARM)
561 +# if _M_ARM == 4
562 +# define ARCHITECTURE_ID "ARMV4I"
563 +# elif _M_ARM == 5
564 +# define ARCHITECTURE_ID "ARMV5I"
565 +# else
566 +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
567 +# endif
568 +
569 +# elif defined(_M_MIPS)
570 +# define ARCHITECTURE_ID "MIPS"
571 +
572 +# elif defined(_M_SH)
573 +# define ARCHITECTURE_ID "SHx"
574 +
575 +# else /* unknown architecture */
576 +# define ARCHITECTURE_ID ""
577 +# endif
578 +
579 +#elif defined(__WATCOMC__)
580 +# if defined(_M_I86)
581 +# define ARCHITECTURE_ID "I86"
582 +
583 +# elif defined(_M_IX86)
584 +# define ARCHITECTURE_ID "X86"
585 +
586 +# else /* unknown architecture */
587 +# define ARCHITECTURE_ID ""
588 +# endif
589 +
590 +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
591 +# if defined(__ICCARM__)
592 +# define ARCHITECTURE_ID "ARM"
593 +
594 +# elif defined(__ICCRX__)
595 +# define ARCHITECTURE_ID "RX"
596 +
597 +# elif defined(__ICCRH850__)
598 +# define ARCHITECTURE_ID "RH850"
599 +
600 +# elif defined(__ICCRL78__)
601 +# define ARCHITECTURE_ID "RL78"
602 +
603 +# elif defined(__ICCRISCV__)
604 +# define ARCHITECTURE_ID "RISCV"
605 +
606 +# elif defined(__ICCAVR__)
607 +# define ARCHITECTURE_ID "AVR"
608 +
609 +# elif defined(__ICC430__)
610 +# define ARCHITECTURE_ID "MSP430"
611 +
612 +# elif defined(__ICCV850__)
613 +# define ARCHITECTURE_ID "V850"
614 +
615 +# elif defined(__ICC8051__)
616 +# define ARCHITECTURE_ID "8051"
617 +
618 +# elif defined(__ICCSTM8__)
619 +# define ARCHITECTURE_ID "STM8"
620 +
621 +# else /* unknown architecture */
622 +# define ARCHITECTURE_ID ""
623 +# endif
624 +
625 +#elif defined(__ghs__)
626 +# if defined(__PPC64__)
627 +# define ARCHITECTURE_ID "PPC64"
628 +
629 +# elif defined(__ppc__)
630 +# define ARCHITECTURE_ID "PPC"
631 +
632 +# elif defined(__ARM__)
633 +# define ARCHITECTURE_ID "ARM"
634 +
635 +# elif defined(__x86_64__)
636 +# define ARCHITECTURE_ID "x64"
637 +
638 +# elif defined(__i386__)
639 +# define ARCHITECTURE_ID "X86"
640 +
641 +# else /* unknown architecture */
642 +# define ARCHITECTURE_ID ""
643 +# endif
644 +
645 +#elif defined(__TI_COMPILER_VERSION__)
646 +# if defined(__TI_ARM__)
647 +# define ARCHITECTURE_ID "ARM"
648 +
649 +# elif defined(__MSP430__)
650 +# define ARCHITECTURE_ID "MSP430"
651 +
652 +# elif defined(__TMS320C28XX__)
653 +# define ARCHITECTURE_ID "TMS320C28x"
654 +
655 +# elif defined(__TMS320C6X__) || defined(_TMS320C6X)
656 +# define ARCHITECTURE_ID "TMS320C6x"
657 +
658 +# else /* unknown architecture */
659 +# define ARCHITECTURE_ID ""
660 +# endif
661 +
662 +#else
663 +# define ARCHITECTURE_ID
664 +#endif
665 +
666 +/* Convert integer to decimal digit literals. */
667 +#define DEC(n) \
668 + ('0' + (((n) / 10000000)%10)), \
669 + ('0' + (((n) / 1000000)%10)), \
670 + ('0' + (((n) / 100000)%10)), \
671 + ('0' + (((n) / 10000)%10)), \
672 + ('0' + (((n) / 1000)%10)), \
673 + ('0' + (((n) / 100)%10)), \
674 + ('0' + (((n) / 10)%10)), \
675 + ('0' + ((n) % 10))
676 +
677 +/* Convert integer to hex digit literals. */
678 +#define HEX(n) \
679 + ('0' + ((n)>>28 & 0xF)), \
680 + ('0' + ((n)>>24 & 0xF)), \
681 + ('0' + ((n)>>20 & 0xF)), \
682 + ('0' + ((n)>>16 & 0xF)), \
683 + ('0' + ((n)>>12 & 0xF)), \
684 + ('0' + ((n)>>8 & 0xF)), \
685 + ('0' + ((n)>>4 & 0xF)), \
686 + ('0' + ((n) & 0xF))
687 +
688 +/* Construct a string literal encoding the version number. */
689 +#ifdef COMPILER_VERSION
690 +char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
691 +
692 +/* Construct a string literal encoding the version number components. */
693 +#elif defined(COMPILER_VERSION_MAJOR)
694 +char const info_version[] = {
695 + 'I', 'N', 'F', 'O', ':',
696 + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
697 + COMPILER_VERSION_MAJOR,
698 +# ifdef COMPILER_VERSION_MINOR
699 + '.', COMPILER_VERSION_MINOR,
700 +# ifdef COMPILER_VERSION_PATCH
701 + '.', COMPILER_VERSION_PATCH,
702 +# ifdef COMPILER_VERSION_TWEAK
703 + '.', COMPILER_VERSION_TWEAK,
704 +# endif
705 +# endif
706 +# endif
707 + ']','\0'};
708 +#endif
709 +
710 +/* Construct a string literal encoding the internal version number. */
711 +#ifdef COMPILER_VERSION_INTERNAL
712 +char const info_version_internal[] = {
713 + 'I', 'N', 'F', 'O', ':',
714 + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
715 + 'i','n','t','e','r','n','a','l','[',
716 + COMPILER_VERSION_INTERNAL,']','\0'};
717 +#elif defined(COMPILER_VERSION_INTERNAL_STR)
718 +char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
719 +#endif
720 +
721 +/* Construct a string literal encoding the version number components. */
722 +#ifdef SIMULATE_VERSION_MAJOR
723 +char const info_simulate_version[] = {
724 + 'I', 'N', 'F', 'O', ':',
725 + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
726 + SIMULATE_VERSION_MAJOR,
727 +# ifdef SIMULATE_VERSION_MINOR
728 + '.', SIMULATE_VERSION_MINOR,
729 +# ifdef SIMULATE_VERSION_PATCH
730 + '.', SIMULATE_VERSION_PATCH,
731 +# ifdef SIMULATE_VERSION_TWEAK
732 + '.', SIMULATE_VERSION_TWEAK,
733 +# endif
734 +# endif
735 +# endif
736 + ']','\0'};
737 +#endif
738 +
739 +/* Construct the string literal in pieces to prevent the source from
740 + getting matched. Store it in a pointer rather than an array
741 + because some compilers will just produce instructions to fill the
742 + array rather than assigning a pointer to a static array. */
743 +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
744 +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
745 +
746 +
747 +
748 +#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
749 +# if defined(__INTEL_CXX11_MODE__)
750 +# if defined(__cpp_aggregate_nsdmi)
751 +# define CXX_STD 201402L
752 +# else
753 +# define CXX_STD 201103L
754 +# endif
755 +# else
756 +# define CXX_STD 199711L
757 +# endif
758 +#elif defined(_MSC_VER) && defined(_MSVC_LANG)
759 +# define CXX_STD _MSVC_LANG
760 +#else
761 +# define CXX_STD __cplusplus
762 +#endif
763 +
764 +const char* info_language_standard_default = "INFO" ":" "standard_default["
765 +#if CXX_STD > 202002L
766 + "23"
767 +#elif CXX_STD > 201703L
768 + "20"
769 +#elif CXX_STD >= 201703L
770 + "17"
771 +#elif CXX_STD >= 201402L
772 + "14"
773 +#elif CXX_STD >= 201103L
774 + "11"
775 +#else
776 + "98"
777 +#endif
778 +"]";
779 +
780 +const char* info_language_extensions_default = "INFO" ":" "extensions_default["
781 +#if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
782 + defined(__TI_COMPILER_VERSION__)) && \
783 + !defined(__STRICT_ANSI__)
784 + "ON"
785 +#else
786 + "OFF"
787 +#endif
788 +"]";
789 +
790 +/*--------------------------------------------------------------------------*/
791 +
792 +int main(int argc, char* argv[])
793 +{
794 + int require = 0;
795 + require += info_compiler[argc];
796 + require += info_platform[argc];
797 +#ifdef COMPILER_VERSION_MAJOR
798 + require += info_version[argc];
799 +#endif
800 +#ifdef COMPILER_VERSION_INTERNAL
801 + require += info_version_internal[argc];
802 +#endif
803 +#ifdef SIMULATE_ID
804 + require += info_simulate[argc];
805 +#endif
806 +#ifdef SIMULATE_VERSION_MAJOR
807 + require += info_simulate_version[argc];
808 +#endif
809 +#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
810 + require += info_cray[argc];
811 +#endif
812 + require += info_language_standard_default[argc];
813 + require += info_language_extensions_default[argc];
814 + (void)argv;
815 + return require;
816 +}
1 +The system is: Linux - 4.15.0-112-generic - x86_64
2 +Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
3 +Compiler: /usr/bin/cc
4 +Build flags:
5 +Id flags:
6 +
7 +The output was:
8 +0
9 +
10 +
11 +Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
12 +
13 +The C compiler identification is GNU, found in "/home/hyunjin/바탕화면/test/build/CMakeFiles/3.23.2/CompilerIdC/a.out"
14 +
15 +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
16 +Compiler: /usr/bin/c++
17 +Build flags:
18 +Id flags:
19 +
20 +The output was:
21 +0
22 +
23 +
24 +Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
25 +
26 +The CXX compiler identification is GNU, found in "/home/hyunjin/바탕화면/test/build/CMakeFiles/3.23.2/CompilerIdCXX/a.out"
27 +
28 +Detecting C compiler ABI info compiled with the following output:
29 +Change Dir: /home/hyunjin/바탕화면/test/build/CMakeFiles/CMakeTmp
30 +
31 +Run Build Command(s):/usr/bin/make -f Makefile cmTC_f2046/fast && /usr/bin/make -f CMakeFiles/cmTC_f2046.dir/build.make CMakeFiles/cmTC_f2046.dir/build
32 +make[1]: Entering directory '/home/hyunjin/바탕화면/test/build/CMakeFiles/CMakeTmp'
33 +Building C object CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o
34 +/usr/bin/cc -v -o CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o -c /usr/local/share/cmake-3.23/Modules/CMakeCCompilerABI.c
35 +Using built-in specs.
36 +COLLECT_GCC=/usr/bin/cc
37 +Target: x86_64-linux-gnu
38 +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
39 +Thread model: posix
40 +gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)
41 +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'
42 + /usr/lib/gcc/x86_64-linux-gnu/5/cc1 -quiet -v -imultiarch x86_64-linux-gnu /usr/local/share/cmake-3.23/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/ccdJBGv8.s
43 +GNU C11 (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)
44 + compiled by GNU C version 5.4.0 20160609, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3
45 +GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=126105
46 +ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
47 +ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/include"
48 +#include "..." search starts here:
49 +#include <...> search starts here:
50 + /usr/lib/gcc/x86_64-linux-gnu/5/include
51 + /usr/local/include
52 + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed
53 + /usr/include/x86_64-linux-gnu
54 + /usr/include
55 +End of search list.
56 +GNU C11 (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)
57 + compiled by GNU C version 5.4.0 20160609, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3
58 +GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=126105
59 +Compiler executable checksum: 8087146d2ee737d238113fb57fabb1f2
60 +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'
61 + as -v --64 -o CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o /tmp/ccdJBGv8.s
62 +GNU assembler version 2.26.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.26.1
63 +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/
64 +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/
65 +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'
66 +Linking C executable cmTC_f2046
67 +/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f2046.dir/link.txt --verbose=1
68 +/usr/bin/cc -v -rdynamic CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o -o cmTC_f2046
69 +Using built-in specs.
70 +COLLECT_GCC=/usr/bin/cc
71 +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
72 +Target: x86_64-linux-gnu
73 +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
74 +Thread model: posix
75 +gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)
76 +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/
77 +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/
78 +COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_f2046' '-mtune=generic' '-march=x86-64'
79 + /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/cc829WSe.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_f2046 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o
80 +make[1]: Leaving directory '/home/hyunjin/바탕화면/test/build/CMakeFiles/CMakeTmp'
81 +
82 +
83 +
84 +Parsed C implicit include dir info from above output: rv=done
85 + found start of include info
86 + found start of implicit include info
87 + add: [/usr/lib/gcc/x86_64-linux-gnu/5/include]
88 + add: [/usr/local/include]
89 + add: [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed]
90 + add: [/usr/include/x86_64-linux-gnu]
91 + add: [/usr/include]
92 + end of search list found
93 + collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/5/include] ==> [/usr/lib/gcc/x86_64-linux-gnu/5/include]
94 + collapse include dir [/usr/local/include] ==> [/usr/local/include]
95 + collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed] ==> [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed]
96 + collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu]
97 + collapse include dir [/usr/include] ==> [/usr/include]
98 + implicit include dirs: [/usr/lib/gcc/x86_64-linux-gnu/5/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include]
99 +
100 +
101 +Parsed C implicit link information from above output:
102 + link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
103 + ignore line: [Change Dir: /home/hyunjin/바탕화면/test/build/CMakeFiles/CMakeTmp]
104 + ignore line: []
105 + ignore line: [Run Build Command(s):/usr/bin/make -f Makefile cmTC_f2046/fast && /usr/bin/make -f CMakeFiles/cmTC_f2046.dir/build.make CMakeFiles/cmTC_f2046.dir/build]
106 + ignore line: [make[1]: Entering directory '/home/hyunjin/바탕화면/test/build/CMakeFiles/CMakeTmp']
107 + ignore line: [Building C object CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o]
108 + ignore line: [/usr/bin/cc -v -o CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o -c /usr/local/share/cmake-3.23/Modules/CMakeCCompilerABI.c]
109 + ignore line: [Using built-in specs.]
110 + ignore line: [COLLECT_GCC=/usr/bin/cc]
111 + ignore line: [Target: x86_64-linux-gnu]
112 + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c ada c++ java go d fortran objc obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
113 + ignore line: [Thread model: posix]
114 + ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ]
115 + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64']
116 + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/cc1 -quiet -v -imultiarch x86_64-linux-gnu /usr/local/share/cmake-3.23/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/ccdJBGv8.s]
117 + ignore line: [GNU C11 (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)]
118 + ignore line: [ compiled by GNU C version 5.4.0 20160609 GMP version 6.1.0 MPFR version 3.1.4 MPC version 1.0.3]
119 + ignore line: [GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=126105]
120 + ignore line: [ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"]
121 + ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/include"]
122 + ignore line: [#include "..." search starts here:]
123 + ignore line: [#include <...> search starts here:]
124 + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/include]
125 + ignore line: [ /usr/local/include]
126 + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed]
127 + ignore line: [ /usr/include/x86_64-linux-gnu]
128 + ignore line: [ /usr/include]
129 + ignore line: [End of search list.]
130 + ignore line: [GNU C11 (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)]
131 + ignore line: [ compiled by GNU C version 5.4.0 20160609 GMP version 6.1.0 MPFR version 3.1.4 MPC version 1.0.3]
132 + ignore line: [GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=126105]
133 + ignore line: [Compiler executable checksum: 8087146d2ee737d238113fb57fabb1f2]
134 + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64']
135 + ignore line: [ as -v --64 -o CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o /tmp/ccdJBGv8.s]
136 + ignore line: [GNU assembler version 2.26.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.26.1]
137 + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/]
138 + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/]
139 + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64']
140 + ignore line: [Linking C executable cmTC_f2046]
141 + ignore line: [/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f2046.dir/link.txt --verbose=1]
142 + ignore line: [/usr/bin/cc -v -rdynamic CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o -o cmTC_f2046 ]
143 + ignore line: [Using built-in specs.]
144 + ignore line: [COLLECT_GCC=/usr/bin/cc]
145 + ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper]
146 + ignore line: [Target: x86_64-linux-gnu]
147 + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c ada c++ java go d fortran objc obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
148 + ignore line: [Thread model: posix]
149 + ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ]
150 + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/]
151 + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/]
152 + ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_f2046' '-mtune=generic' '-march=x86-64']
153 + link line: [ /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/cc829WSe.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_f2046 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o]
154 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/collect2] ==> ignore
155 + arg [-plugin] ==> ignore
156 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so] ==> ignore
157 + arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] ==> ignore
158 + arg [-plugin-opt=-fresolution=/tmp/cc829WSe.res] ==> ignore
159 + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
160 + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
161 + arg [-plugin-opt=-pass-through=-lc] ==> ignore
162 + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
163 + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
164 + arg [--sysroot=/] ==> ignore
165 + arg [--build-id] ==> ignore
166 + arg [--eh-frame-hdr] ==> ignore
167 + arg [-m] ==> ignore
168 + arg [elf_x86_64] ==> ignore
169 + arg [--hash-style=gnu] ==> ignore
170 + arg [--as-needed] ==> ignore
171 + arg [-export-dynamic] ==> ignore
172 + arg [-dynamic-linker] ==> ignore
173 + arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
174 + arg [-zrelro] ==> ignore
175 + arg [-o] ==> ignore
176 + arg [cmTC_f2046] ==> ignore
177 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o]
178 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o]
179 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o]
180 + arg [-L/usr/lib/gcc/x86_64-linux-gnu/5] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5]
181 + arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu]
182 + arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib]
183 + arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu]
184 + arg [-L/lib/../lib] ==> dir [/lib/../lib]
185 + arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu]
186 + arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
187 + arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..]
188 + arg [CMakeFiles/cmTC_f2046.dir/CMakeCCompilerABI.c.o] ==> ignore
189 + arg [-lgcc] ==> lib [gcc]
190 + arg [--as-needed] ==> ignore
191 + arg [-lgcc_s] ==> lib [gcc_s]
192 + arg [--no-as-needed] ==> ignore
193 + arg [-lc] ==> lib [c]
194 + arg [-lgcc] ==> lib [gcc]
195 + arg [--as-needed] ==> ignore
196 + arg [-lgcc_s] ==> lib [gcc_s]
197 + arg [--no-as-needed] ==> ignore
198 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtend.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/5/crtend.o]
199 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o]
200 + collapse obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> [/usr/lib/x86_64-linux-gnu/crt1.o]
201 + collapse obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> [/usr/lib/x86_64-linux-gnu/crti.o]
202 + collapse obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] ==> [/usr/lib/x86_64-linux-gnu/crtn.o]
203 + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5] ==> [/usr/lib/gcc/x86_64-linux-gnu/5]
204 + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
205 + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> [/usr/lib]
206 + collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu]
207 + collapse library dir [/lib/../lib] ==> [/lib]
208 + collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
209 + collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
210 + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> [/usr/lib]
211 + implicit libs: [gcc;gcc_s;c;gcc;gcc_s]
212 + implicit objs: [/usr/lib/x86_64-linux-gnu/crt1.o;/usr/lib/x86_64-linux-gnu/crti.o;/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o;/usr/lib/gcc/x86_64-linux-gnu/5/crtend.o;/usr/lib/x86_64-linux-gnu/crtn.o]
213 + implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib]
214 + implicit fwks: []
215 +
216 +
217 +Detecting CXX compiler ABI info compiled with the following output:
218 +Change Dir: /home/hyunjin/바탕화면/test/build/CMakeFiles/CMakeTmp
219 +
220 +Run Build Command(s):/usr/bin/make -f Makefile cmTC_24faa/fast && /usr/bin/make -f CMakeFiles/cmTC_24faa.dir/build.make CMakeFiles/cmTC_24faa.dir/build
221 +make[1]: Entering directory '/home/hyunjin/바탕화면/test/build/CMakeFiles/CMakeTmp'
222 +Building CXX object CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o
223 +/usr/bin/c++ -v -o CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o -c /usr/local/share/cmake-3.23/Modules/CMakeCXXCompilerABI.cpp
224 +Using built-in specs.
225 +COLLECT_GCC=/usr/bin/c++
226 +Target: x86_64-linux-gnu
227 +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
228 +Thread model: posix
229 +gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)
230 +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
231 + /usr/lib/gcc/x86_64-linux-gnu/5/cc1plus -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE /usr/local/share/cmake-3.23/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/ccY7zbFx.s
232 +GNU C++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)
233 + compiled by GNU C version 5.4.0 20160609, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3
234 +GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=126105
235 +ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/5"
236 +ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
237 +ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/include"
238 +#include "..." search starts here:
239 +#include <...> search starts here:
240 + /usr/include/c++/5
241 + /usr/include/x86_64-linux-gnu/c++/5
242 + /usr/include/c++/5/backward
243 + /usr/lib/gcc/x86_64-linux-gnu/5/include
244 + /usr/local/include
245 + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed
246 + /usr/include/x86_64-linux-gnu
247 + /usr/include
248 +End of search list.
249 +GNU C++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)
250 + compiled by GNU C version 5.4.0 20160609, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3
251 +GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=126105
252 +Compiler executable checksum: 85af4995304287cdd19cfa43cf5d6cf1
253 +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
254 + as -v --64 -o CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccY7zbFx.s
255 +GNU assembler version 2.26.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.26.1
256 +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/
257 +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/
258 +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
259 +Linking CXX executable cmTC_24faa
260 +/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_24faa.dir/link.txt --verbose=1
261 +/usr/bin/c++ -v -rdynamic CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_24faa
262 +Using built-in specs.
263 +COLLECT_GCC=/usr/bin/c++
264 +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
265 +Target: x86_64-linux-gnu
266 +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
267 +Thread model: posix
268 +gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)
269 +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/
270 +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/
271 +COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_24faa' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
272 + /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/cclcNjrE.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_24faa /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o
273 +make[1]: Leaving directory '/home/hyunjin/바탕화면/test/build/CMakeFiles/CMakeTmp'
274 +
275 +
276 +
277 +Parsed CXX implicit include dir info from above output: rv=done
278 + found start of include info
279 + found start of implicit include info
280 + add: [/usr/include/c++/5]
281 + add: [/usr/include/x86_64-linux-gnu/c++/5]
282 + add: [/usr/include/c++/5/backward]
283 + add: [/usr/lib/gcc/x86_64-linux-gnu/5/include]
284 + add: [/usr/local/include]
285 + add: [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed]
286 + add: [/usr/include/x86_64-linux-gnu]
287 + add: [/usr/include]
288 + end of search list found
289 + collapse include dir [/usr/include/c++/5] ==> [/usr/include/c++/5]
290 + collapse include dir [/usr/include/x86_64-linux-gnu/c++/5] ==> [/usr/include/x86_64-linux-gnu/c++/5]
291 + collapse include dir [/usr/include/c++/5/backward] ==> [/usr/include/c++/5/backward]
292 + collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/5/include] ==> [/usr/lib/gcc/x86_64-linux-gnu/5/include]
293 + collapse include dir [/usr/local/include] ==> [/usr/local/include]
294 + collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed] ==> [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed]
295 + collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu]
296 + collapse include dir [/usr/include] ==> [/usr/include]
297 + implicit include dirs: [/usr/include/c++/5;/usr/include/x86_64-linux-gnu/c++/5;/usr/include/c++/5/backward;/usr/lib/gcc/x86_64-linux-gnu/5/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include]
298 +
299 +
300 +Parsed CXX implicit link information from above output:
301 + link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
302 + ignore line: [Change Dir: /home/hyunjin/바탕화면/test/build/CMakeFiles/CMakeTmp]
303 + ignore line: []
304 + ignore line: [Run Build Command(s):/usr/bin/make -f Makefile cmTC_24faa/fast && /usr/bin/make -f CMakeFiles/cmTC_24faa.dir/build.make CMakeFiles/cmTC_24faa.dir/build]
305 + ignore line: [make[1]: Entering directory '/home/hyunjin/바탕화면/test/build/CMakeFiles/CMakeTmp']
306 + ignore line: [Building CXX object CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o]
307 + ignore line: [/usr/bin/c++ -v -o CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o -c /usr/local/share/cmake-3.23/Modules/CMakeCXXCompilerABI.cpp]
308 + ignore line: [Using built-in specs.]
309 + ignore line: [COLLECT_GCC=/usr/bin/c++]
310 + ignore line: [Target: x86_64-linux-gnu]
311 + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c ada c++ java go d fortran objc obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
312 + ignore line: [Thread model: posix]
313 + ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ]
314 + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
315 + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/cc1plus -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE /usr/local/share/cmake-3.23/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/ccY7zbFx.s]
316 + ignore line: [GNU C++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)]
317 + ignore line: [ compiled by GNU C version 5.4.0 20160609 GMP version 6.1.0 MPFR version 3.1.4 MPC version 1.0.3]
318 + ignore line: [GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=126105]
319 + ignore line: [ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/5"]
320 + ignore line: [ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"]
321 + ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/include"]
322 + ignore line: [#include "..." search starts here:]
323 + ignore line: [#include <...> search starts here:]
324 + ignore line: [ /usr/include/c++/5]
325 + ignore line: [ /usr/include/x86_64-linux-gnu/c++/5]
326 + ignore line: [ /usr/include/c++/5/backward]
327 + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/include]
328 + ignore line: [ /usr/local/include]
329 + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed]
330 + ignore line: [ /usr/include/x86_64-linux-gnu]
331 + ignore line: [ /usr/include]
332 + ignore line: [End of search list.]
333 + ignore line: [GNU C++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)]
334 + ignore line: [ compiled by GNU C version 5.4.0 20160609 GMP version 6.1.0 MPFR version 3.1.4 MPC version 1.0.3]
335 + ignore line: [GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=126105]
336 + ignore line: [Compiler executable checksum: 85af4995304287cdd19cfa43cf5d6cf1]
337 + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
338 + ignore line: [ as -v --64 -o CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccY7zbFx.s]
339 + ignore line: [GNU assembler version 2.26.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.26.1]
340 + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/]
341 + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/]
342 + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
343 + ignore line: [Linking CXX executable cmTC_24faa]
344 + ignore line: [/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_24faa.dir/link.txt --verbose=1]
345 + ignore line: [/usr/bin/c++ -v -rdynamic CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_24faa ]
346 + ignore line: [Using built-in specs.]
347 + ignore line: [COLLECT_GCC=/usr/bin/c++]
348 + ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper]
349 + ignore line: [Target: x86_64-linux-gnu]
350 + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c ada c++ java go d fortran objc obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
351 + ignore line: [Thread model: posix]
352 + ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ]
353 + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/]
354 + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/]
355 + ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_24faa' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
356 + link line: [ /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/cclcNjrE.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_24faa /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o]
357 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/collect2] ==> ignore
358 + arg [-plugin] ==> ignore
359 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so] ==> ignore
360 + arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] ==> ignore
361 + arg [-plugin-opt=-fresolution=/tmp/cclcNjrE.res] ==> ignore
362 + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
363 + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
364 + arg [-plugin-opt=-pass-through=-lc] ==> ignore
365 + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
366 + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
367 + arg [--sysroot=/] ==> ignore
368 + arg [--build-id] ==> ignore
369 + arg [--eh-frame-hdr] ==> ignore
370 + arg [-m] ==> ignore
371 + arg [elf_x86_64] ==> ignore
372 + arg [--hash-style=gnu] ==> ignore
373 + arg [--as-needed] ==> ignore
374 + arg [-export-dynamic] ==> ignore
375 + arg [-dynamic-linker] ==> ignore
376 + arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
377 + arg [-zrelro] ==> ignore
378 + arg [-o] ==> ignore
379 + arg [cmTC_24faa] ==> ignore
380 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o]
381 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o]
382 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o]
383 + arg [-L/usr/lib/gcc/x86_64-linux-gnu/5] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5]
384 + arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu]
385 + arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib]
386 + arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu]
387 + arg [-L/lib/../lib] ==> dir [/lib/../lib]
388 + arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu]
389 + arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
390 + arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..]
391 + arg [CMakeFiles/cmTC_24faa.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
392 + arg [-lstdc++] ==> lib [stdc++]
393 + arg [-lm] ==> lib [m]
394 + arg [-lgcc_s] ==> lib [gcc_s]
395 + arg [-lgcc] ==> lib [gcc]
396 + arg [-lc] ==> lib [c]
397 + arg [-lgcc_s] ==> lib [gcc_s]
398 + arg [-lgcc] ==> lib [gcc]
399 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtend.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/5/crtend.o]
400 + arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o]
401 + collapse obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> [/usr/lib/x86_64-linux-gnu/crt1.o]
402 + collapse obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> [/usr/lib/x86_64-linux-gnu/crti.o]
403 + collapse obj [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] ==> [/usr/lib/x86_64-linux-gnu/crtn.o]
404 + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5] ==> [/usr/lib/gcc/x86_64-linux-gnu/5]
405 + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
406 + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> [/usr/lib]
407 + collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu]
408 + collapse library dir [/lib/../lib] ==> [/lib]
409 + collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
410 + collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
411 + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> [/usr/lib]
412 + implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc]
413 + implicit objs: [/usr/lib/x86_64-linux-gnu/crt1.o;/usr/lib/x86_64-linux-gnu/crti.o;/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o;/usr/lib/gcc/x86_64-linux-gnu/5/crtend.o;/usr/lib/x86_64-linux-gnu/crtn.o]
414 + implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib]
415 + implicit fwks: []
416 +
417 +
1 +# This file is generated by cmake for dependency checking of the CMakeCache.txt file
No preview for this file type
No preview for this file type
1 +#include <vector>
2 +#include <thread>
3 +#include <memory>
4 +#include <functional>
5 +
6 +#include <zmq.hpp>
7 +#include <zhelpers.hpp>
8 +
9 +class client_task {
10 +public:
11 + client_task()
12 + : ctx_(1),
13 + client_socket_(ctx_, ZMQ_DEALER)
14 + {}
15 +
16 + void start() {
17 + char identity[10] = {};
18 + sprintf(identity, "%04X-%04X", within(0x10000), within(0x10000));
19 + printf("%s\n", identity);
20 + client_socket_.setsockopt(ZMQ_IDENTITY, identity, strlen(identity));
21 + client_socket_.connect("tcp://localhost:5570");
22 +
23 + zmq::pollitem_t items[] = {
24 + { client_socket_, 0, ZMQ_POLLIN, 0 } };
25 + int request_nbr = 0;
26 + try {
27 + while (true) {
28 + for (int i = 0; i < 100; ++i) {
29 + zmq::poll(items, 1, 10);
30 + if (items[0].revents & ZMQ_POLLIN) {
31 + printf("\n%s ", identity);
32 + s_dump(client_socket_);
33 + }
34 + }
35 + char request_string[16] = {};
36 + sprintf(request_string, "request #%d", ++request_nbr);
37 + client_socket_.send(request_string, strlen(request_string));
38 + }
39 + }
40 + catch (std::exception &e) {}
41 + }
42 +
43 +private:
44 + zmq::context_t ctx_;
45 + zmq::socket_t client_socket_;
46 +};
47 +
48 +int main(void){
49 + client_task ct1;
50 + client_task ct2;
51 + client_task ct3;
52 +}
53 +
1 +#include <vector>
2 +#include <thread>
3 +#include <memory>
4 +#include <functional>
5 +
6 +#include <zmq.hpp>
7 +#include <zhelpers.hpp>
8 +
9 +
10 +class server_worker {
11 +public:
12 + server_worker(zmq::context_t &ctx, int sock_type)
13 + : ctx_(ctx),
14 + worker_(ctx_, sock_type)
15 + {}
16 +
17 + void work() {
18 + worker_.connect("inproc://backend");
19 +
20 + try {
21 + while (true) {
22 + zmq::message_t identity;
23 + zmq::message_t msg;
24 + zmq::message_t copied_id;
25 + zmq::message_t copied_msg;
26 + worker_.recv(&identity);
27 + worker_.recv(&msg);
28 +
29 + int replies = within(5);
30 + for (int reply = 0; reply < replies; ++reply) {
31 + s_sleep(within(1000) + 1);
32 + copied_id.copy(&identity);
33 + copied_msg.copy(&msg);
34 + worker_.send(copied_id, ZMQ_SNDMORE);
35 + worker_.send(copied_msg);
36 + }
37 + }
38 + }
39 + catch (std::exception &e) {}
40 + }
41 +
42 +
43 +
44 +private:
45 + zmq::context_t &ctx_;
46 + zmq::socket_t worker_;
47 +};
48 +
49 +
50 +class server_task {
51 +public:
52 + server_task()
53 + : ctx_(1),
54 + frontend_(ctx_, ZMQ_ROUTER),
55 + backend_(ctx_, ZMQ_DEALER)
56 + {}
57 +
58 + enum { kMaxThread = 5 };
59 +
60 + void run() {
61 + frontend_.bind("tcp://*:5570");
62 + backend_.bind("inproc://backend");
63 +
64 + std::vector<server_worker *> worker;
65 + std::vector<std::thread *> worker_thread;
66 + for (int i = 0; i < kMaxThread; ++i) {
67 + worker.push_back(new server_worker(ctx_, ZMQ_DEALER));
68 +
69 + worker_thread.push_back(new std::thread(std::bind(&server_worker::work, worker[i])));
70 + worker_thread[i]->detach();
71 + }
72 +
73 +
74 + try {
75 + zmq::proxy(static_cast<void*>(frontend_),
76 + static_cast<void*>(backend_),
77 + nullptr);
78 + }
79 + catch (std::exception &e) {}
80 +
81 + for (int i = 0; i < kMaxThread; ++i) {
82 + delete worker[i];
83 + delete worker_thread[i];
84 + }
85 + }
86 +
87 +
88 +private:
89 + zmq::context_t ctx_;
90 + zmq::socket_t frontend_;
91 + zmq::socket_t backend_;
92 +};
93 +
94 +
95 +int main(void){
96 + server_task st;
97 +
98 + /*server = ServerTask(3)
99 + server.start()
100 + server.join()
101 +
102 + std::thread t1(std::bind(&client_task::start, &ct1));
103 + std::thread t2(std::bind(&client_task::start, &ct2));
104 + std::thread t3(std::bind(&client_task::start, &ct3));
105 + std::thread t4(std::bind(&server_task::run, &st));
106 +
107 + t1.detach();
108 + t2.detach();
109 + t3.detach();
110 + t4.detach();*/
111 +
112 +}
113 +
No preview for this file type
1 +#include <zmq.hpp>
2 +#include <iostream>
3 +#include <sstream>
4 +
5 +int main (int argc, char *argv[])
6 +{
7 + zmq::context_t context (1);
8 +
9 + std::cout << "Collecting updates from weather server..." << std::endl;
10 + zmq::socket_t subscriber (context, zmq::socket_type::sub);
11 + subscriber.connect("tcp://localhost:5556");
12 +
13 + const char *filter = (argc > 1)? argv [1]: "10001 ";
14 + subscriber.setsockopt(ZMQ_SUBSCRIBE, filter, strlen(filter));
15 +
16 + int update_nbr;
17 + long total_temp = 0;
18 + for (update_nbr = 0; update_nbr < 20; update_nbr++) {
19 +
20 + zmq::message_t update;
21 + int zipcode, temperature, relhumidity;
22 +
23 + subscriber.recv(update, zmq::recv_flags::none);
24 +
25 + std::istringstream iss(static_cast<char*>(update.data()));
26 + iss >> zipcode >> temperature >> relhumidity ;
27 +
28 + total_temp += temperature;
29 +
30 + std::cout << "Receive temperature for zipcode '"<< filter <<"' was "<<(int) (temperature) <<"F"<< std::endl;
31 + }
32 +
33 + std::cout << "Average temperature for zipcode '"<< filter
34 + <<"' was "<<(int) (total_temp / update_nbr) <<"F"
35 + << std::endl;
36 + return 0;
37 +}
No preview for this file type
1 +#include <zmq.hpp>
2 +#include <stdio.h>
3 +#include <stdlib.h>
4 +#include <iostream>
5 +#include <time.h>
6 +#include <unistd.h>
7 +#if (defined (WIN32))
8 +#include <zhelpers.hpp>
9 +#endif
10 +
11 +#define within(num) (int) ((float) num * random () / (RAND_MAX + 1.0))
12 +
13 +int main () {
14 +
15 + std::cout<<"Publishing updates at weather server..."<<std::endl;
16 +
17 + zmq::context_t context (1);
18 + zmq::socket_t publisher (context, zmq::socket_type::pub);
19 + publisher.bind("tcp://*:5556");
20 + publisher.bind("ipc://weather.ipc");
21 +
22 + srandom ((unsigned) time (NULL));
23 + while (1) {
24 +
25 + int zipcode, temperature, relhumidity;
26 +
27 + zipcode = within (100000);
28 + temperature = within (215) - 80;
29 + relhumidity = within (50) + 10;
30 +
31 + zmq::message_t message(20);
32 + snprintf ((char *) message.data(), 20 ,
33 + "%05d %d %d", zipcode, temperature, relhumidity);
34 + publisher.send(message, zmq::send_flags::none);
35 +
36 +
37 + }
38 + return 0;
39 +}
No preview for this file type
No preview for this file type
1 +#include <zmq.hpp>
2 +#include <string>
3 +#include <iostream>
4 +
5 +int main ()
6 +{
7 + zmq::context_t context (1);
8 + zmq::socket_t socket (context, zmq::socket_type::req);
9 +
10 + std::cout << "Connecting to hello world server..." << std::endl;
11 + socket.connect ("tcp://localhost:5555");
12 +
13 + for (int request_nbr = 0; request_nbr != 10; request_nbr++) {
14 + zmq::message_t request (5);
15 + memcpy (request.data (), "Hello", 5);
16 + std::cout << "Sending request " << request_nbr << "..." << std::endl;
17 + socket.send (request, zmq::send_flags::none);
18 +
19 + zmq::message_t reply;
20 + socket.recv (reply, zmq::recv_flags::none);
21 + std::cout << "Received reply " << request_nbr << std::endl;
22 + }
23 + return 0;
24 +}
No preview for this file type
1 +#include <zmq.hpp>
2 +#include <string>
3 +#include <iostream>
4 +#include <unistd.h>
5 +
6 +int main () {
7 + zmq::context_t context (1);
8 + zmq::socket_t socket (context, zmq::socket_type::rep);
9 + socket.bind ("tcp://*:5555");
10 +
11 + while (true) {
12 + zmq::message_t request;
13 + socket.recv (request, zmq::recv_flags::none);
14 + std::cout << "Received request" << std::endl;
15 +
16 + sleep(1);
17 +
18 + zmq::message_t reply (5);
19 + memcpy (reply.data (), "World", 5);
20 + socket.send (reply, zmq::send_flags::none);
21 + }
22 + return 0;
23 +}
This file is too large to display.