Пример #1
0
        public static string WhichClang()
        {
            string InternalSDKPath = LinuxPlatformSDK.GetInternalSDKPath();

            if (!String.IsNullOrEmpty(InternalSDKPath))
            {
                return(Path.Combine(InternalSDKPath, "bin", "clang++"));
            }

            string[] ClangNames = { "clang++", "clang++-7.0", "clang++-6.0" };
            string   ClangPath;

            foreach (string ClangName in ClangNames)
            {
                ClangPath = Which(ClangName);
                if (!String.IsNullOrEmpty(ClangPath))
                {
                    return(ClangPath);
                }
            }

            return(null);
        }