目录

What should I do if no ASan log is generated when an entry module references a local library?

Symptom

When an entry module references a local library and the ASan option is selected, no ASan log is generated.

Solution

When an entry module references a local C++ library, set arguments to -DOHOS_ENABLE_ASAN=ON in the build-profile.json5 file of the library module, so that the .so file is compiled in ASan mode.

{
  // ...
      "arguments": "-DOHOS_ENABLE_ASAN=ON",
      // ...
    }
  },
  // ...
}