You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
354 B
22 lines
354 B
% import re
|
|
% STD_RE = re.compile(r"\-std=[a-z\+]+(\d+)")
|
|
% cc_stds = STD_RE.findall(cc_flags)
|
|
% cxx_stds = STD_RE.findall(cxx_flags)
|
|
%
|
|
%
|
|
clang
|
|
|
|
% if cc_stds:
|
|
{{"%c"}} -std=c{{ cc_stds[-1] }}
|
|
% end
|
|
% if cxx_stds:
|
|
{{"%cpp"}} -std=c++{{ cxx_stds[-1] }}
|
|
% end
|
|
|
|
% for include in includes:
|
|
-I{{ include }}
|
|
% end
|
|
|
|
% for define in defines:
|
|
-D{{ define }}
|
|
% end
|
|
|