-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Boost:MPI configuration check when enabled
The mpi.jam file is patched to enable the error
- Loading branch information
1 parent
e7a268c
commit f77c87c
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff -ru a/tools/build/src/tools/mpi.jam b/tools/build/src/tools/mpi.jam | ||
--- a/tools/build/src/tools/mpi.jam 2019-12-10 01:20:16.000000000 +0100 | ||
+++ b/tools/build/src/tools/mpi.jam 2020-09-02 13:17:22.942349254 +0200 | ||
@@ -66,6 +66,8 @@ | ||
import type ; | ||
import path ; | ||
|
||
+import errors ; | ||
+ | ||
# Make this module a project | ||
project.initialize $(__name__) ; | ||
project mpi ; | ||
@@ -539,6 +541,11 @@ | ||
# Set up the "mpi" alias | ||
alias mpi : : : : $(options) ; | ||
} | ||
+ | ||
+ if ! $(.configured) | ||
+ { | ||
+ errors.user-error "MPI not configured" ; | ||
+ } | ||
} | ||
|
||
# States whether MPI has bee configured |