Skip to content

Commit eff3870

Browse files
committed
windows compilation bugfix
1 parent bdabb9b commit eff3870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

symx/src/compile/Compilation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void symx::Compilation::compile(const std::vector<Scalar>& expr, const std::stri
7575

7676
#ifdef _MSC_VER
7777
const std::string enable_output = (get_suppress_compiler_output()) ? " >nul 2>nul " : "";
78-
command = compiler_path + enable_output;
78+
command = "call " + compiler_path + enable_output;
7979
command += " && cd /d \"" + folder + "\"";
8080
command += " && cl " + name + ".cpp /LD /Ox /arch:AVX2 /bigobj" + enable_output; // Note: fast-math is not used because it can change the expected results (e.g. sqrt(pow(x, 2)) < 0)
8181
command += " && del " + name + ".exp";

0 commit comments

Comments
 (0)