--- /dev/null
+--- a/clang/lib/Driver/Tools.cpp
++++ b/clang/lib/Driver/Tools.cpp
+@@ -4090,16 +4090,18 @@
+ // environment variable.
+ const char * herculesInstallPathEnv = std::getenv("HERCULES_INSTALL_PATH");
+ const char * herculesPassRootEnv = std::getenv("HERCULES_PASS_ROOT");
+- if(herculesPassRootEnv != nullptr || herculesInstallPathEnv != nullptr) {
++ if(true || herculesPassRootEnv != nullptr || herculesInstallPathEnv != nullptr) {
+ std::string herculesPassRoot;
+ if(herculesInstallPathEnv != nullptr) {
+ herculesPassRoot = std::string(std::string(herculesInstallPathEnv)
+ + std::string("/lib/hercules/"));
+- } else {
++ } else if(herculesPassRootEnv != nullptr) {
+ herculesPassRoot = std::string(std::string(herculesPassRootEnv)
+ + std::string("/src/Passes/"));
++ } else {
++ // Default path
++ herculesPassRoot = std::string("/opt/hercules-compiler/lib/hercules/");
+ }
+-
+ CmdArgs.push_back("-load");
+ CmdArgs.push_back(Args.MakeArgString(herculesPassRoot +
+ "AnnotatePTXGlobals/libAnnotatePTXGlobals.so"));