Skip to content

Commit

Permalink
[boost-build] Support nvc++ (microsoft#34072)
Browse files Browse the repository at this point in the history
* [boost-build] Support nvc++

Add support for nvc++ as CXX compiler when building boost, by specifying `toolset pgi` when invoking b2.

Related discussion: bfgroup/b2#215

Fixes: microsoft#34068

* Update boost-modular-build-helper.json

---------

Co-authored-by: jim wang <[email protected]>
  • Loading branch information
bernhardmgruber and jimwang118 authored Sep 29, 2023
1 parent 0fa73de commit 584dbaa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ports/boost-modular-build-helper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "wasm32")
set(USER_CONFIG_TOOLSET emscripten)
elseif(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(USER_CONFIG_TOOLSET clang)
elseif(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID MATCHES "NVHPC")
set(USER_CONFIG_TOOLSET pgi)
else()
set(USER_CONFIG_TOOLSET gcc)
endif()
Expand Down
1 change: 1 addition & 0 deletions ports/boost-modular-build-helper/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-modular-build-helper",
"version": "1.83.0",
"port-version": 1,
"description": "Internal vcpkg port used to build Boost libraries",
"license": "MIT",
"dependencies": [
Expand Down
5 changes: 5 additions & 0 deletions versions/b-/boost-modular-build-helper.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "95d209e069cf1a82d48fa32cef7a7c39edc33c22",
"version": "1.83.0",
"port-version": 1
},
{
"git-tree": "843c4331dc1453c80f99e25be4513c99074c5cf2",
"version": "1.83.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@
},
"boost-modular-build-helper": {
"baseline": "1.83.0",
"port-version": 0
"port-version": 1
},
"boost-move": {
"baseline": "1.83.0",
Expand Down

0 comments on commit 584dbaa

Please sign in to comment.