diff --git a/CMakeLists.txt b/CMakeLists.txt
index d26e0ab5fa633638a039ad51fc61f9545aab4e26..7cf8469e5b7b3ad58a370e1c114229740813b812 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,7 +40,5 @@ add_subdirectory(test)
 add_subdirectory(bin)
 add_subdirectory(applications)
 
-add_executable(autotune_target EXCLUDE_FROM_ALL autotune.cc)
-
 # finalize the dune project, e.g. generating config.h etc.
 finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index 8b6d3318bc46f180eb7ef4a388a20cbcc65fbbe5..a4c8a3702eccd689568cd9def3f24462e09d3f4f 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -20,3 +20,7 @@ dune_python_add_test(NAME pep8-ourcode
                      )
 
 add_subdirectory(test)
+
+# Add a dummy target to extract compiler flags for the autotune tool chain
+add_executable(_autotune_target EXCLUDE_FROM_ALL _autotune.cc)
+target_compile_options(_autotune_target PUBLIC -fno-strict-aliasing)
diff --git a/python/dune/perftool/pdelab/localoperator.py b/python/dune/perftool/pdelab/localoperator.py
index 1b49197e8e48af700e3697ef3a90b338cf7fa200..3fb213c87e98883e4f474c4145090b40aff1eec4 100644
--- a/python/dune/perftool/pdelab/localoperator.py
+++ b/python/dune/perftool/pdelab/localoperator.py
@@ -459,7 +459,7 @@ def generate_kernel(integrals):
     # Delete the cache contents and do the real thing!
     logger.debug('generate_kernel: visit_integrals (no dry run)')
     from dune.perftool.generation import delete_cache_items
-    delete_cache_items("kernel_default or member")
+    delete_cache_items("kernel_default")
     for integral in integrals:
         visit_integral(integral)