Move --use-msvc-mangling out from clang flags.

This commit is contained in:
Xidorn Quan 2016-09-30 11:09:43 +10:00 committed by GitHub
parent 8b26c3ead5
commit 910853f12a

View file

@ -270,7 +270,6 @@ def platform_dependent_defines():
elif system == "Windows":
ret.append("-DOS_WIN=1")
ret.append("-DWIN32=1")
ret.append("-use-msvc-mangling")
msvc_platform = os.environ["PLATFORM"]
if msvc_platform == "X86":
ret.append("--target=i686-pc-win32")
@ -392,6 +391,9 @@ def build(objdir, target_name, debug, debugger, kind_name=None,
clang_flags.extend(platform_dependent_defines())
if platform.system() == "Windows":
flags.append("--use-msvc-mangling")
if "raw_lines" in current_target:
for raw_line in current_target["raw_lines"]:
flags.append("--raw-line")