Fix Mac CMake build after r222900
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jan 2018 18:58:47 +0000 (18:58 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jan 2018 18:58:47 +0000 (18:58 +0000)
* MallocBench/MallocBench/CMakeLists.txt:
The mbmalloc target doesn't exist if we're not in developer mode, so only use it if we are.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226980 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PerformanceTests/ChangeLog
PerformanceTests/MallocBench/MallocBench/CMakeLists.txt

index 8b04e62..9baf7f3 100644 (file)
@@ -1,3 +1,10 @@
+2018-01-16  Alex Christensen  <achristensen@webkit.org>
+
+        Fix Mac CMake build after r222900
+
+        * MallocBench/MallocBench/CMakeLists.txt:
+        The mbmalloc target doesn't exist if we're not in developer mode, so only use it if we are.
+
 2018-01-09  Ryosuke Niwa  <rniwa@webkit.org>
 
         Speedometer 2.0: Update the About page.
index df0b650..ede6224 100644 (file)
@@ -47,9 +47,11 @@ WEBKIT_WRAP_SOURCELIST(${MALLOC_BENCH_SOURCES})
 include_directories(${MALLOC_BENCH_INCLUDE_DIRECTORIES})
 
 SET(CMAKE_SKIP_BUILD_RPATH  TRUE)
-add_executable(MallocBench ${MALLOC_BENCH_SOURCES})
-target_link_libraries(MallocBench ${CMAKE_THREAD_LIBS_INIT} ${MALLOC_BENCH_LIBRARIES} mbmalloc)
-add_dependencies(MallocBench sysmalloc mbmalloc)
+if (DEVELOPER_MODE)
+    add_executable(MallocBench ${MALLOC_BENCH_SOURCES})
+    target_link_libraries(MallocBench ${CMAKE_THREAD_LIBS_INIT} ${MALLOC_BENCH_LIBRARIES} mbmalloc)
+    add_dependencies(MallocBench sysmalloc mbmalloc)
+endif ()
 
 set(MALLOC_BENCH_OPS
     facebook.ops