c6ce65d3d0
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
21 lines
802 B
Diff
21 lines
802 B
Diff
Index: cmake-scripts/boomerang-flags.cmake
|
|
===================================================================
|
|
--- a/cmake-scripts/boomerang-flags.cmake
|
|
+++ b/cmake-scripts/boomerang-flags.cmake
|
|
@@ -104,16 +104,6 @@ endif ()
|
|
|
|
|
|
if (NOT MSVC)
|
|
- if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
|
- BOOMERANG_ADD_COMPILE_FLAGS(-O0)
|
|
- elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
|
|
- # No special flags
|
|
- elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel")
|
|
- BOOMERANG_ADD_COMPILE_FLAGS(-Os)
|
|
- else () # Release
|
|
- BOOMERANG_ADD_COMPILE_FLAGS(-O3)
|
|
- endif ()
|
|
-
|
|
if (BOOMERANG_ENABLE_COVERAGE)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
|