• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisiona3e8778d20b455e6af39ec6e91a11a16a38cb033 (tree)
Time2012-12-26 12:36:44
AuthorShinya TAKEBAYASHI <omoikanenomikoto@gmai...>
CommiterShinya TAKEBAYASHI

Log Message

Separated gcc buildtest to libs/util

Change Summary

Incremental Difference

--- a/hl.py
+++ b/hl.py
@@ -7,21 +7,6 @@ version_number = "$Id$"
77
88 include_path = []
99
10-def generate_code():
11- code = '#include <stdio.h> \n int main(int argc, char **argv){return 0;}\n'
12- open('tmp.c', 'w').write(code)
13-
14-
15-def ulink():
16- os.remove('tmp.c')
17- os.remove('a.out')
18-
19-
20-def rungcc():
21- L = ['gcc', '-v', 'tmp.c', '-o', 'a.out']
22- os.spawnlp(os.P_WAIT, 'gcc', L)
23-
24-
2510 def findheader2(target, rootdir):
2611 path = None
2712 for root, dirs, files in os.walk(rootdir):
--- /dev/null
+++ b/libs/util.py
@@ -0,0 +1,18 @@
1+import os
2+
3+
4+def generate_code():
5+ code = '#include <stdio.h> \n int main(int argc, char **argv){return 0;}\n'
6+ open('tmp.c', 'w').write(code)
7+
8+
9+def ulink():
10+ os.remove('tmp.c')
11+ os.remove('a.out')
12+
13+
14+def rungcc():
15+ L = ['gcc', '-v', 'tmp.c', '-o', 'a.out']
16+ os.spawnlp(os.P_WAIT, 'gcc', L)
17+
18+