aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/zig.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/zig.js')
-rw-r--r--lib/compilers/zig.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/compilers/zig.js b/lib/compilers/zig.js
index db1570d88..a93e7b18f 100644
--- a/lib/compilers/zig.js
+++ b/lib/compilers/zig.js
@@ -122,6 +122,15 @@ export class ZigCompiler extends BaseCompiler {
return options;
}
+ getIncludeArguments(libraries) {
+ return _.flatten(_.map(libraries, (selectedLib) => {
+ const foundVersion = this.findLibVersion(selectedLib);
+ if (!foundVersion) return false;
+ // Zig should not have more than 1 path
+ return ['--pkg-begin', foundVersion.name, foundVersion.path, '--pkg-end'];
+ }));
+ }
+
getIrOutputFilename(inputFilename) {
return this.getOutputFilename(path.dirname(inputFilename), this.outputFilebase)
.replace('.s', '.ll');