[flang-commits] [clang] [flang] [flang][driver] Remove Fortain_main static library from linking stages (PR #75816)

Andrzej WarzyƄski via flang-commits flang-commits at lists.llvm.org
Mon Dec 18 11:15:24 PST 2023


================
@@ -1133,6 +1133,16 @@ static bool isWholeArchivePresent(const ArgList &Args) {
   return WholeArchiveActive;
 }
 
+/// Determine if driver is invoked to create a shared object library (-static)
+static bool isSharedLinkage(const ArgList &Args) {
+  return Args.hasArg(options::OPT_shared);
+}
+
+/// Determine if driver is invoked to create a static object library (-shared)
+static bool isStaticLinkage(const ArgList &Args) {
+  return Args.hasArg(options::OPT_static);
+}
+
----------------
banach-space wrote:

[nit] Personally I'd just add these checks in line. But I'm happy either way.

https://github.com/llvm/llvm-project/pull/75816


More information about the flang-commits mailing list