mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Source Level Debugger: add generating debug data in cloc
- generate debug data to .dbg file in cloc - generate debug kernel for ults with "-g" option in addition to "-cl-kernel-debug-enable" - append "-g" option for compilation and build of programs with kernel debugging enabled to make compiler generate debug data Change-Id: I09401f84be6e09da167194a44d1b9a7f2bfb622d
This commit is contained in:
@ -92,11 +92,13 @@ cl_int Program::build(
|
||||
break;
|
||||
}
|
||||
|
||||
internalOptions.append(platform()->peekCompilerExtensions());
|
||||
|
||||
if (isKernelDebugEnabled()) {
|
||||
internalOptions.append(CompilerOptions::debugKernelEnable);
|
||||
options.append(" -g ");
|
||||
}
|
||||
|
||||
internalOptions.append(platform()->peekCompilerExtensions());
|
||||
inputArgs.pInput = (char *)(sourceCode.c_str());
|
||||
inputArgs.InputSize = (uint32_t)sourceCode.size();
|
||||
inputArgs.pOptions = options.c_str();
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -155,6 +155,7 @@ cl_int Program::compile(
|
||||
|
||||
if (isKernelDebugEnabled()) {
|
||||
internalOptions.append(CompilerOptions::debugKernelEnable);
|
||||
options.append(" -g ");
|
||||
}
|
||||
|
||||
inputArgs.pInput = pCompileData;
|
||||
|
Reference in New Issue
Block a user