Skip to content

Commit

Permalink
SERVER-36656 Add canary builders for XCode 10 and XCode 10 with C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
acmorrow committed Nov 17, 2018
1 parent c5f382a commit 26e67a7
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 2 deletions.
95 changes: 95 additions & 0 deletions etc/evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11125,6 +11125,101 @@ buildvariants:
distros:
- rhel70-small

- name: enterprise-osx-1011-xcode-10
display_name: ~ Enterprise macOS 10.11 (XCode 10)
modules:
- enterprise
run_on:
- macos-1014
batchtime: 1440 # 1 day
expansions:
test_flags: --excludeWithAnyTags=requires_ssl_mongo_tools
compile_env: DEVELOPER_DIR=/Applications/Xcode10.0.app
compile_flags: >-
--ssl
-j$(sysctl -n hw.logicalcpu)
--libc++
--variables-files=etc/scons/xcode_macosx.vars
num_jobs_available: 1
gorootvars: 'PATH="/opt/golang/go1.10/bin:/opt/mongodbtoolchain/v2/bin/:$PATH" GOROOT=/opt/golang/go1.10 CGO_CPPFLAGS=-I/opt/mongodbtoolchain/v2/include CGO_CFLAGS=-mmacosx-version-min=10.11 CGO_LDFLAGS=-mmacosx-version-min=10.11'
tooltags: "-tags 'ssl sasl openssl_pre_1.0'"
build_mongoreplay: true
display_tasks:
- *dbtest
- *unittests
tasks:
- name: compile_all_run_unittests_TG
- name: audit
- name: auth_audit
- name: ese
- name: jsCore
- name: jsCore_auth
- name: jsCore_txns
- name: causally_consistent_jscore_txns_passthrough
- name: jstestfuzz
- name: jstestfuzz_concurrent
- name: jstestfuzz_concurrent_replication
- name: jstestfuzz_concurrent_sharded
- name: jstestfuzz_replication
- name: jstestfuzz_sharded
- name: logical_session_cache_replication_1sec_refresh_jscore_passthrough
- name: logical_session_cache_sharding_1sec_refresh_jscore_passthrough
- name: logical_session_cache_standalone_1sec_refresh_jscore_passthrough
- name: replica_sets_auth
- name: replica_sets_jscore_passthrough
- name: sasl
- name: ssl
- name: sslSpecial

- name: enterprise-osx-1011-xcode-10-cxx17
display_name: ~ Enterprise macOS 10.11 (XCode 10 C++17)
modules:
- enterprise
run_on:
- macos-1014
batchtime: 1440 # 1 day
expansions:
test_flags: --excludeWithAnyTags=requires_ssl_mongo_tools
compile_env: DEVELOPER_DIR=/Applications/Xcode10.0.app
compile_flags: >-
--ssl
-j$(sysctl -n hw.logicalcpu)
--libc++
--variables-files=etc/scons/xcode_macosx.vars
--cxx-std=17
CPPDEFINES=_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
CXXFLAGS="-Wno-register"
num_jobs_available: 1
gorootvars: 'PATH="/opt/golang/go1.10/bin:/opt/mongodbtoolchain/v2/bin/:$PATH" GOROOT=/opt/golang/go1.10 CGO_CPPFLAGS=-I/opt/mongodbtoolchain/v2/include CGO_CFLAGS=-mmacosx-version-min=10.11 CGO_LDFLAGS=-mmacosx-version-min=10.11'
tooltags: "-tags 'ssl sasl openssl_pre_1.0'"
build_mongoreplay: true
display_tasks:
- *dbtest
- *unittests
tasks:
- name: compile_all_run_unittests_TG
- name: audit
- name: auth_audit
- name: ese
- name: jsCore
- name: jsCore_auth
- name: jsCore_txns
- name: causally_consistent_jscore_txns_passthrough
- name: jstestfuzz
- name: jstestfuzz_concurrent
- name: jstestfuzz_concurrent_replication
- name: jstestfuzz_concurrent_sharded
- name: jstestfuzz_replication
- name: jstestfuzz_sharded
- name: logical_session_cache_replication_1sec_refresh_jscore_passthrough
- name: logical_session_cache_sharding_1sec_refresh_jscore_passthrough
- name: logical_session_cache_standalone_1sec_refresh_jscore_passthrough
- name: replica_sets_auth
- name: replica_sets_jscore_passthrough
- name: sasl
- name: ssl
- name: sslSpecial

- name: enterprise-osx-1010-openssl
display_name: ~ Enterprise macOS 10.10 OpenSSL
modules:
Expand Down
5 changes: 3 additions & 2 deletions src/mongo/base/clonable_ptr_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include <functional>
#include <memory>
#include <tuple>

#include "mongo/unittest/unittest.h"

Expand Down Expand Up @@ -256,7 +257,7 @@ void construction() {
}

// Test move construction.
{ mongo::clonable_ptr<Clonable>{mongo::clonable_ptr<Clonable>{}}; }
{ std::ignore = mongo::clonable_ptr<Clonable>{mongo::clonable_ptr<Clonable>{}}; }

// Test copy construction.
{
Expand Down Expand Up @@ -342,7 +343,7 @@ void augmentedConstruction() {

// Test move construction.
{
mongo::clonable_ptr<Clonable, CloneFactory>{
std::ignore = mongo::clonable_ptr<Clonable, CloneFactory>{
mongo::clonable_ptr<Clonable, CloneFactory>{Clonable::getCloningFunction()}};
}

Expand Down

0 comments on commit 26e67a7

Please sign in to comment.