• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版0d628b5d0551b92ad9b7f9008adf8c149241e878 (tree)
时间2013-01-22 19:54:51
作者Shinya TAKEBAYASHI <omoikanenomikoto@gmai...>
CommiterShinya TAKEBAYASHI

Log Message

separated gcc version detector

更改概述

差异

--- /dev/null
+++ b/get.py
@@ -0,0 +1,18 @@
1+#! /usr/bin/env python
2+
3+import subprocess
4+import os
5+
6+tmpfile = ".tmp.c"
7+wd = "/tmp/"
8+cmdline "gcc -v " + wd + tmpfile
9+
10+def generate_code():
11+ code = '#include <stdio.h> \n int main(int argc, char **argv){return 0;}\n'
12+ open(wd + tmpfile, 'w').write(code)
13+
14+
15+def ulink():
16+ os.remove('tmp.c')
17+ os.remove('a.out')
18+