Skip to content

Commit

Permalink
Fix comments to reflect Darwin vs Linux difference of environment
Browse files Browse the repository at this point in the history
variable used to preload shared libraries.
  • Loading branch information
theurich committed Oct 23, 2023
1 parent a3b1c71 commit 48daf2c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Infrastructure/Trace/preload/gen_wrappers_mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@
* This file was generated by gen_wrappers_mpi.py.
* !! DO NOT EDIT !!
*
* Functions that will be preloaded with LD_PRELOAD, thereby
* Functions that will be preloaded with LD_PRELOAD
* (or DYLD_INSERT_LIBRARIES on Darwin), thereby
* overriding system library functions so we can call into our
* wrapper function.
*
Expand Down
4 changes: 2 additions & 2 deletions src/Infrastructure/Trace/preload/preload.C
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ extern "C" {
/**
* Called into from ESMCI_Trace.C when the trace
* is opened and can receive events. The linker will preload
* this symbol when LD_PRELOAD is specified so we can
* catch this notification.
* this symbol when LD_PRELOAD (or DYLD_INSERT_LIBRARIES on Darwin)
* is specified so we can catch this notification.
*/
int c_esmftrace_notify_wrappers(int initialized) {
if (initialized == 1) {
Expand Down
3 changes: 2 additions & 1 deletion src/Infrastructure/Trace/preload/preload_io.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
*
* preload_io.c
*
* Functions that will be preloaded with LD_PRELOAD, thereby
* Functions that will be preloaded with LD_PRELOAD,
* (or DYLD_INSERT_LIBRARIES on Darwin), thereby
* overriding system library functions so we can call into our
* wrapper function.
*
Expand Down
3 changes: 2 additions & 1 deletion src/Infrastructure/Trace/preload/preload_mpi.C
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* This file was generated by gen_wrappers_mpi.py.
* !! DO NOT EDIT !!
*
* Functions that will be preloaded with LD_PRELOAD, thereby
* Functions that will be preloaded with LD_PRELOAD,
* (or DYLD_INSERT_LIBRARIES on Darwin), thereby
* overriding system library functions so we can call into our
* wrapper function.
*
Expand Down

0 comments on commit 48daf2c

Please sign in to comment.