From 6e87e4485809b73479040ded43ad798276f9e36d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 22 Jan 2018 02:21:53 +0200 Subject: [PATCH 1/2] Add variant=debug,release to appveyor.yml --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 87300da..ca1857a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -70,4 +70,4 @@ build: off test_script: - PATH=%ADDPATH%%PATH% - if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD% - - b2 -j3 libs/system/test toolset=%TOOLSET% %CXXSTD% + - b2 -j3 libs/system/test toolset=%TOOLSET% variant=debug,release %CXXSTD% From 3b988e278bee7e9ba276742b1c30412f75bede31 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 22 Jan 2018 03:19:35 +0200 Subject: [PATCH 2/2] Use BOOST_SYMBOL_EXPORT instead of __declspec --- test/single_instance_1.cpp | 4 ++-- test/single_instance_2.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/single_instance_1.cpp b/test/single_instance_1.cpp index 3bee8a8..7d6cd1b 100644 --- a/test/single_instance_1.cpp +++ b/test/single_instance_1.cpp @@ -4,8 +4,8 @@ #include -#if defined(SINGLE_INSTANCE_DYN_LINK) && defined(BOOST_HAS_DECLSPEC) -# define EXPORT __declspec(dllexport) +#if defined(SINGLE_INSTANCE_DYN_LINK) +# define EXPORT BOOST_SYMBOL_EXPORT #else # define EXPORT #endif diff --git a/test/single_instance_2.cpp b/test/single_instance_2.cpp index 6a3cc63..dba74a7 100644 --- a/test/single_instance_2.cpp +++ b/test/single_instance_2.cpp @@ -4,8 +4,8 @@ #include -#if defined(SINGLE_INSTANCE_DYN_LINK) && defined(BOOST_HAS_DECLSPEC) -# define EXPORT __declspec(dllexport) +#if defined(SINGLE_INSTANCE_DYN_LINK) +# define EXPORT BOOST_SYMBOL_EXPORT #else # define EXPORT #endif