Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/colibri/linter/vivado.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { LANGUAGE } from "../common/general";
import { Base_linter } from "./base_linter";
import * as common from "./common";
import * as path_lib from "path";
import { BinaryCheck, checkBinary } from "colibri/toolChecker/utils";

export class Vivado extends Base_linter {
binary = "vivado";
Expand All @@ -35,6 +36,13 @@ export class Vivado extends Base_linter {
super();
}

public async checkLinterConfiguration(installationPath: string): Promise<BinaryCheck> {
// Vivado installations can expose either wrapper binaries (vivado) or
// direct lint binaries (xvhdl/xvlog), depending on the configured folder.
const binaryCandidates = ["xvhdl", "xvlog", "vivado"];
return await checkBinary(this.constructor.name, installationPath, binaryCandidates, this.argumentToCheck);
}

public set_binary(file: string) {
const file_lang = get_language_from_filepath(file);
let binary = "";
Expand Down