Changed "show" defaults for Win32
authorClifford Wolf <clifford@clifford.at>
Thu, 19 Feb 2015 08:11:38 +0000 (09:11 +0100)
committerClifford Wolf <clifford@clifford.at>
Thu, 19 Feb 2015 08:11:38 +0000 (09:11 +0100)
passes/cmds/show.cc

index 4d6095e55a08af64634514baf49da30cc02214c3..7cda4400c1ee7036fe15daae93e4e416307b5772 100644 (file)
@@ -641,6 +641,9 @@ struct ShowPass : public Pass {
                log("The generated output files are '~/.yosys_show.dot' and '~/.yosys_show.<format>',\n");
                log("unless another prefix is specified using -prefix <prefix>.\n");
                log("\n");
+               log("Yosys on Windows and YosysJS use different defaults: The output is written\n");
+               log("to 'show.dot' in the current directory and new viewer is launched.\n");
+               log("\n");
        }
        virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
        {
@@ -650,7 +653,7 @@ struct ShowPass : public Pass {
                std::vector<std::pair<std::string, RTLIL::Selection>> color_selections;
                std::vector<std::pair<std::string, RTLIL::Selection>> label_selections;
 
-#ifdef EMSCRIPTEN
+#if defined(EMSCRIPTEN) || defined(_WIN32)
                std::string format = "dot";
                std::string prefix = "show";
 #else