Skip to content

Instantly share code, notes, and snippets.

@pieter
Created March 19, 2009 23:02
Show Gist options
  • Save pieter/82118 to your computer and use it in GitHub Desktop.
Save pieter/82118 to your computer and use it in GitHub Desktop.
From 68afeba0a147942fdd5f112c5215feb7954c3666 Mon Sep 17 00:00:00 2001
From: Pieter de Bie <pdebie@ai.rug.nl>
Date: Thu, 19 Mar 2009 23:02:04 +0000
Subject: [PATCH] Driver: Add Darwin-specific options to toolchain
---
lib/Driver/ToolChains.h | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/lib/Driver/ToolChains.h b/lib/Driver/ToolChains.h
index e7da90c..0377395 100644
--- a/lib/Driver/ToolChains.h
+++ b/lib/Driver/ToolChains.h
@@ -123,8 +123,20 @@ public:
return *T;
}
-
-
+
+ virtual bool IsMathErrnoDefault() const { return false; }
+
+ virtual const char *GetDefaultRelocationModel() const {
+ return "pic";
+ }
+
+ virtual const char *GetForcedPicModel() const {
+ if (getArchName() == "x86_64")
+ return "pic";
+
+ return 0;
+ }
+
};
} // end namespace toolchains
} // end namespace driver
--
1.6.2.1.337.g6270ba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment