aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-02-03 12:34:20 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-02-03 12:34:20 -0500
commit3be4b6434c0d96f8f6975c13c1a84f06a9857ed8 (patch)
tree45650fe319d274154285b28906a98a9f2650109c /src/codegen.cpp
parente00eec1c299ccc721f4272a506321939be7094f1 (diff)
downloadzig-3be4b6434c0d96f8f6975c13c1a84f06a9857ed8.tar.gz
zig-3be4b6434c0d96f8f6975c13c1a84f06a9857ed8.zip
add ability to set linker script
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 2b3dbfa0af..dc496b9857 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -225,6 +225,11 @@ void codegen_set_rdynamic(CodeGen *g, bool rdynamic) {
g->linker_rdynamic = rdynamic;
}
+void codegen_set_linker_script(CodeGen *g, const char *linker_script) {
+ g->linker_script = linker_script;
+}
+
+
static void render_const_val(CodeGen *g, ConstExprValue *const_val);
static void render_const_val_global(CodeGen *g, ConstExprValue *const_val, bool is_export);