Fixup dtrace build of default_engine

Change-Id: Ib2af3784c130d9d8e951aebbc942c789e9d1f0a9
Reviewed-on: http://review.couchbase.org/40131
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
MB-11846: Un-disable optimization as it causes compiler memory explosion (partial revert of 4bb252a2a7d9a369c80f8db71b3b5dc1c9f47eb9)
Change-Id: I0840515f6e29c3daddb66f8622d2d46a3492e596
Reviewed-on: http://review.couchbase.org/40153
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Chris Hillery <ceej@couchbase.com>
Merge remote-tracking branch 'membase/3.0'

* membase/3.0:
  MB-11846: Un-disable optimization as it causes compiler...
  Fixup dtrace build of default_engine

Change-Id: I6db28ac0f5966d9021bb003fef3af681abba67c8
Revert "MB-11846: Un-disable optimization as it ..."

This reverts commit 2be3904d62349463c45ef97806df37298db96149.

Change-Id: Ice24eed2620378b83372c0725fca7e2f464a87dc
Reviewed-on: http://review.couchbase.org/40164
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
MB-11846: Add workaround for broken builders

According to MB-11846 we have some misconfigured vm's unable to
compile the source code without enabling optimization. This
patch introduce a workaround to enable the optimization of the
breakdancer tests until the vm's is fixed. To use the workaround
define COUCHBASE_OPTIMIZE_BREAKDANCER_TEST during compilation.

Add -D CMAKE_C_FLAGS=-DCOUCHBASE_OPTIMIZE_BREAKDANCER_TEST to
the command line when invoking cmake.

Change-Id: I067548b39be9f52951afed0c30221e1d77926b93
Reviewed-on: http://review.couchbase.org/40165
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Merge remote-tracking branch 'membase/3.0.1'

* membase/3.0.1:
  MB-11846: Add workaround for broken builders
  Revert "MB-11846: Un-disable optimization as it ..."
  MB-11846: Un-disable optimization as it causes compiler..."
  Fixup dtrace build of default_engine

Change-Id: Ief0ff0397e9ad8d40637e26eca44fd7617f1c996