Skip to content

Commit 3fae695

Browse files
committed
Same fix for benchmark.py: don't pass --msvc if not on windows
1 parent 75efdd7 commit 3fae695

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benchmark.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from __future__ import absolute_import
77

88
import argparse
9+
import platform
910
import os
1011
import os.path as p
1112
import subprocess
@@ -31,7 +32,7 @@ def BuildYcmdLibsAndRunBenchmark( args, extra_args ):
3132

3233
os.environ[ 'YCM_BENCHMARK' ] = '1'
3334

34-
if args.msvc:
35+
if args.msvc and platform.system() == 'Windows':
3536
build_cmd.extend( [ '--msvc', str( args.msvc ) ] )
3637

3738
subprocess.check_call( build_cmd )

0 commit comments

Comments
 (0)