• R/O
  • HTTP
  • SSH
  • HTTPS

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

File Info

Révision 0d628b5d0551b92ad9b7f9008adf8c149241e878
Taille 322 octets
l'heure 2013-01-22 19:54:51
Auteur Shinya TAKEBAYASHI
Message de Log

separated gcc version detector

Content

#! /usr/bin/env python

import subprocess
import os

tmpfile = ".tmp.c"
wd = "/tmp/"
cmdline "gcc -v " + wd + tmpfile

def generate_code():
    code = '#include <stdio.h> \n int main(int argc, char **argv){return 0;}\n'
    open(wd + tmpfile, 'w').write(code)


def ulink():
    os.remove('tmp.c')
    os.remove('a.out')