Skip to content

Commit

Permalink
fix #12 bugfix clang options
Browse files Browse the repository at this point in the history
  • Loading branch information
lvzixun committed Apr 11, 2015
1 parent bc6fa7a commit a50a478
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions st_cc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

language_regex = re.compile("(?<=source\.)[\w+#]+")
drivers = {
"c++": True,
"c": True,
"objc": True,
"objc++": True,
"c++": "-xc++",
"c": "-xc",
"objc": "-ObjC",
"objc++": "-ObjC++",
}

def get_unsaved_files(view):
Expand Down Expand Up @@ -153,7 +153,7 @@ def get_opt(view):
s = view.settings()
include_opts = s.has("cc_include_options") and s.get("cc_include_options", []) or settings.get("include_options", [])

opt = []
opt = [drivers[language]]
if language in additional_lang_opts:
for v in additional_lang_opts[language]:
opt.append(v)
Expand Down

0 comments on commit a50a478

Please sign in to comment.