Change-Id: Ib274591f120e7d8ed89b568c67de042cba21e07a
+ // NI fils of TAC-related dlls under /opt/usr/dotnet should not be created under .native_image directory.
+ // So, unset NI_FLAGS_APPNI temporally and restore it after running AOT.
bool isAppNI = false;
if (opt->flags & NI_FLAGS_APPNI) {
bool isAppNI = false;
if (opt->flags & NI_FLAGS_APPNI) {
+ opt->flags &= ~NI_FLAGS_APPNI;
}
if (!needNIList.empty()) {
}
if (!needNIList.empty()) {
- // NI fils of TAC-related dlls under /opt/usr/dotnet should not be created under .native_image directory.
- // So, unset NI_FLAGS_APPNI temporally and restore it after running AOT.
- opt->flags &= ~NI_FLAGS_APPNI;
ret = doAOTList(needNIList, refPaths, opt);
ret = doAOTList(needNIList, refPaths, opt);
- if (isAppNI) {
- opt->flags |= NI_FLAGS_APPNI;
- }
if (ret != NI_ERROR_NONE) {
return ret;
}
}
if (isAppNI) {
if (ret != NI_ERROR_NONE) {
return ret;
}
}
if (isAppNI) {
+ opt->flags |= NI_FLAGS_APPNI;
for (auto &niPath : niList) {
if (exist(niPath)) {
std::string symNIPath = concatPath(targetPath, getFileName(niPath));
for (auto &niPath : niList) {
if (exist(niPath)) {
std::string symNIPath = concatPath(targetPath, getFileName(niPath));