3 # let T2 figure it all out...
10 # cmake .. -DCMAKE_INSTALL_PREFIX=/usr
13 #hook_add premake 5 "hardinfo_build1"
15 ##...fail, do it this way:
21 export CMAKE_CXX_FLAGS=''
25 sed -i -e 's% \-O0 % %' CMakeFiles/benchmark.dir/build.make
26 sed -i -e 's% \-O0% %' CMakeFiles/benchmark.dir/flags.make
27 sed -i -e 's%=\-0[s32] %= %' CMakeCache.txt
32 custmain=hardinfo_build2
34 #compile fails, complains must not have '-O' optimisation, for the timing tests.
35 #var_remove_regex CC_WRAPPER_INSERT ' ' '-O.*'
36 #var_remove CC_WRAPPER_INSERT " " "-O"
37 #var_remove CC_WRAPPER_INSERT " " "-Os"
38 #var_remove CC_WRAPPER_INSERT " " "-O0"
39 #...these do not work. try this:
43 sed -i -e 's% \-O0 % %' CMakeFiles/benchmark.dir/build.make
44 sed -i -e 's% \-O0 % %' CMakeFiles/benchmark.dir/flags.make
46 #hook_add premake 5 "hardinfo_pre1"