equal
deleted
inserted
replaced
234 |
234 |
235 |
235 |
236 #get BUILD_TYPE and enable/disable optimisation |
236 #get BUILD_TYPE and enable/disable optimisation |
237 message(STATUS "Using ${CMAKE_BUILD_TYPE} configuration") |
237 message(STATUS "Using ${CMAKE_BUILD_TYPE} configuration") |
238 if(CMAKE_BUILD_TYPE MATCHES "DEBUG") |
238 if(CMAKE_BUILD_TYPE MATCHES "DEBUG") |
239 set(HW_DEV true) #becomes isDevBuild |
|
240 |
|
241 list(APPEND pascal_flags "-O-" # disable all optimisations |
239 list(APPEND pascal_flags "-O-" # disable all optimisations |
242 "-g" # enable debug symbols |
240 "-g" # enable debug symbols |
243 "-gl" # add line info to bt |
241 "-gl" # add line info to bt |
244 "-gv" # allow valgrind |
242 "-gv" # allow valgrind |
245 ) |
243 ) |
246 list(APPEND haskell_flags "-Wall" "-debug" "-dcore-lint" "-fno-warn-unused-do-bind") |
244 list(APPEND haskell_flags "-Wall" "-debug" "-dcore-lint" "-fno-warn-unused-do-bind") |
247 else() |
245 else() |
248 set(HW_DEV false) |
|
249 |
|
250 list(APPEND pascal_flags "-Os" # optimise for size |
246 list(APPEND pascal_flags "-Os" # optimise for size |
251 "-Xs" # strip binary |
247 "-Xs" # strip binary |
252 "-Si" # turn on inlining |
248 "-Si" # turn on inlining |
253 ) |
249 ) |
254 list(APPEND haskell_flags "-w" "-fno-warn-unused-do-bind") |
250 list(APPEND haskell_flags "-w" "-fno-warn-unused-do-bind") |