Changeset 6211


Ignore:
Timestamp:
Nov 26, 2018, 12:49:43 PM (3 months ago)
Author:
nmedfort
Message:

Boost compile issue fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/object_cache.cpp

    r6209 r6211  
    239239            char * const cachePath = const_cast<char *>(mCachePath.c_str());
    240240            char * args[3] = {const_cast<char *>(CACHE_JANITOR_FILE_NAME), cachePath, nullptr};
    241             fs::path path(codegen::ProgramName);
    242             path.remove_filename().append(CACHE_JANITOR_FILE_NAME);
    243             if (execvp(const_cast<char *>(path.c_str()), args) < 0) {
     241            Path janitorFileName(codegen::ProgramName);
     242            sys::path::remove_filename(janitorFileName);
     243            sys::path::append(janitorFileName, CACHE_JANITOR_FILE_NAME);
     244            char * const janitorPath = const_cast<char *>(janitorFileName.c_str());
     245            if (execvp(janitorPath, args) < 0) {
    244246                // syslog?
    245247            }
Note: See TracChangeset for help on using the changeset viewer.