mbmalloc should only be built in developer mode
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jan 2018 15:34:07 +0000 (15:34 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jan 2018 15:34:07 +0000 (15:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=181654

Reviewed by Carlos Garcia Campos.

* CMakeLists.txt:

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

Source/bmalloc/CMakeLists.txt
Source/bmalloc/ChangeLog

index d276d78..ae9a513 100644 (file)
@@ -48,6 +48,8 @@ add_library(bmalloc STATIC ${bmalloc_SOURCES})
 target_link_libraries(bmalloc ${bmalloc_LIBRARIES})
 set_target_properties(bmalloc PROPERTIES COMPILE_DEFINITIONS "BUILDING_bmalloc")
 
-add_library(mbmalloc SHARED bmalloc/mbmalloc.cpp)
-target_link_libraries(mbmalloc bmalloc ${CMAKE_THREAD_LIBS_INIT} ${bmalloc_LIBRARIES})
-set_target_properties(mbmalloc PROPERTIES COMPILE_DEFINITIONS "BUILDING_mbmalloc")
+if (DEVELOPER_MODE)
+    add_library(mbmalloc SHARED bmalloc/mbmalloc.cpp)
+    target_link_libraries(mbmalloc bmalloc ${CMAKE_THREAD_LIBS_INIT} ${bmalloc_LIBRARIES})
+    set_target_properties(mbmalloc PROPERTIES COMPILE_DEFINITIONS "BUILDING_mbmalloc")
+endif ()
index c233b66..cf2e410 100644 (file)
@@ -1,3 +1,12 @@
+2018-01-16  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        mbmalloc should only be built in developer mode
+        https://bugs.webkit.org/show_bug.cgi?id=181654
+
+        Reviewed by Carlos Garcia Campos.
+
+        * CMakeLists.txt:
+
 2018-01-15  Michael Catanzaro  <mcatanzaro@igalia.com>
 
         Improve use of ExportMacros