Skip to content

Commit b18bb11

Browse files
committed
Jitify2: Remove found include log fitlering, this is no longer in the error by default.
Either JITIFY_VERBOSE_ERRORS must be defined to a truthy value, or .info() must be called on the ErrorMsg for the header log to be included. see jitify2::make_compilation_error_msg for the implementation
1 parent f6d29c7 commit b18bb11

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

src/flamegpu/detail/JitifyCache.cu

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -422,17 +422,10 @@ std::unique_ptr<jitify2::LinkedProgramData> JitifyCache::buildProgram(
422422
jitify2::PreprocessedProgram preprocessed_program = program->preprocess(options);
423423
if (!preprocessed_program.ok()) {
424424
const jitify2::ErrorMsg& compile_error = preprocessed_program.error();
425-
const char* currentPos = compile_error.c_str();
426-
const char* lastPos = currentPos;
427-
while ((currentPos = strstr(currentPos, "Found #include"))) {
428-
lastPos = currentPos++;
429-
}
430-
currentPos = strstr(lastPos, "\n");
431-
currentPos++;
432425
fprintf(stderr, "Failed to load program for agent function (condition) '%s', log:\n%s",
433-
func_name.c_str(), currentPos);
426+
func_name.c_str(), compile_error.c_str());
434427
THROW exception::InvalidAgentFunc("Error loading agent function (or function condition) ('%s'): function had compilation errors:\n%s",
435-
func_name.c_str(), currentPos);
428+
func_name.c_str(), compile_error.c_str());
436429
}
437430
// Compile
438431
jitify2::CompiledProgram compiled_program = preprocessed_program->compile({ name_expression });

0 commit comments

Comments
 (0)