Remove duplicate files from app assembly list
authorj-h.choi <j-h.choi@samsung.com>
Tue, 21 Nov 2023 07:22:37 +0000 (16:22 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Mon, 19 Feb 2024 05:32:15 +0000 (14:32 +0900)
NativeLauncher/tool/ni_common.cc

index 7cc1d63..6fbd707 100644 (file)
@@ -756,6 +756,10 @@ static ni_error_e doAOTList(std::vector<std::string>& dllList, const std::string
                }
        }
 
+       // Error : Multiple input files matching same simple name
+       // So, Remove dulicate files from dll list
+       dllList.erase(unique(dllList.begin(), dllList.end()), dllList.end());
+
        // In the case of SPC, post-processing is required to change the name of the native image.
        // In order to avoid repeatedly checking whether the generated native image is an SPC,
        // the SPC native image generation is performed separately.