diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6f0baea9d5..99b0ded063 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -50,7 +50,7 @@ jobs: set PATH=%BOOST_ROOT%;%PATH% set PYTHON_INTERPRETER=python cd test - b2 -l400 warnings=all warnings-as-errors=on ${{ matrix.config }} deterministic-tests + b2 -l400 msvc-version-macro=on warnings=all warnings-as-errors=on ${{ matrix.config }} deterministic-tests - name: tests (flaky) @@ -63,7 +63,7 @@ jobs: :retry if %c%==0 exit /B 1 set /a c = %c% -1 - b2 -l400 warnings=all warnings-as-errors=on ${{ matrix.config }} + b2 -l400 msvc-version-macro=on warnings=all warnings-as-errors=on ${{ matrix.config }} if %errorlevel%==0 exit /B 0 if %c% gtr 0 goto retry exit /B 1 @@ -105,7 +105,7 @@ jobs: echo %BOOST_ROOT% echo %PATH% cd simulation - b2 --hash release address-model=64 link=static debug-iterators=off invariant-checks=on define=BOOST_ASIO_DISABLE_IOCP asserts=on testing.execute=off + b2 --hash release msvc-version-macro=on address-model=64 link=static debug-iterators=off invariant-checks=on define=BOOST_ASIO_DISABLE_IOCP asserts=on testing.execute=off - name: run sims uses: nick-fields/retry@v3 @@ -114,7 +114,7 @@ jobs: timeout_minutes: 120 command: | cd simulation - b2 --hash -l700 release address-model=64 link=static debug-iterators=off invariant-checks=on define=BOOST_ASIO_DISABLE_IOCP asserts=on + b2 --hash -l700 release msvc-version-macro=on address-model=64 link=static debug-iterators=off invariant-checks=on define=BOOST_ASIO_DISABLE_IOCP asserts=on build: name: Build @@ -149,7 +149,7 @@ jobs: run: | set BOOST_ROOT=%CD%\boost set PATH=%BOOST_ROOT%;%PATH% - b2 ${{ matrix.config }} cxxstd=14 address-model=64 warnings=all warnings-as-errors=on + b2 ${{ matrix.config }} cxxstd=14 msvc-version-macro=on address-model=64 warnings=all warnings-as-errors=on - name: build examples if: ${{ ! contains(matrix.config, 'windows-api=store') }} @@ -157,7 +157,7 @@ jobs: set BOOST_ROOT=%CD%\boost set PATH=%BOOST_ROOT%;%PATH% cd examples - b2 ${{ matrix.config }} address-model=64 warnings=all warnings-as-errors=on + b2 ${{ matrix.config }} msvc-version-macro=on address-model=64 warnings=all warnings-as-errors=on - name: build tools if: ${{ ! contains(matrix.config, 'windows-api=store') }} @@ -165,7 +165,7 @@ jobs: set BOOST_ROOT=%CD%\boost set PATH=%BOOST_ROOT%;%PATH% cd tools - b2 ${{ matrix.config }} address-model=64 warnings=all warnings-as-errors=on + b2 ${{ matrix.config }} msvc-version-macro=on address-model=64 warnings=all warnings-as-errors=on mingw: name: MingW diff --git a/Jamfile b/Jamfile index 94d45d64b5..fbd4cb6cd4 100644 --- a/Jamfile +++ b/Jamfile @@ -355,15 +355,8 @@ rule building ( properties * ) # https://learn.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=msvc-170 result += /permissive- ; } - - # ask the compiler to correctly set __cplusplus version - if msvc in $(properties) - { - result += on ; - } } - if gcc in $(properties) && windows in $(properties) { # allow larger .obj files (with more sections)