• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签

Frequently used words (click to add to your profile)

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

超漢字開発環境でClangを使ってみるテスト


Commit MetaInfo

修订版f4046c5954cad525d54b1f2e8298cc1e0fc37116 (tree)
时间2015-11-19 01:48:30
作者ornse01 <ornse01@user...>
Commiterornse01

Log Message

replace compiler setting. gcc to clang.

更改概述

差异

--- a/src/Rakefile
+++ b/src/Rakefile
@@ -1,10 +1,11 @@
11 require 'rake/clean'
22 require 'rake/loaders/makefile'
33
4-CC = "#{ENV['GNUi386']}/bin/gcc386"
4+CC = "clang"
55 INCDIR = ["#{ENV['BD']}/include", "../src"]
6-CFLAGS = "-O2 -fno-strength-reduce -mpreferred-stack-boundary=2 -Wall"
6+CFLAGS = "-O2 -target i386-unknown-gnu -Wall"
77 CPPFLAGS = "#{INCDIR.map {|item| '-I'+item }.join(' ')} -DPCAT"
8+LINKER = "#{ENV['GNUi386']}/bin/gcc386"
89 LOADLIBES = "-limg -lapp -ltf -lgcc -lmain_r -ldbg -llang -lg -lsys -lg -lf -lsvc"
910 LDFLAGS = "-L#{ENV['BD']}/lib/i386e2"
1011 NM = "#{ENV['GNUi386']}/bin/nm"
@@ -26,7 +27,7 @@ CLOBBER.include(FileList["*.d"])
2627 task :default => [TARGET_MAP]
2728
2829 file TARGET_BIN => OBJS do |t|
29- sh "#{CC} #{LDFLAGS} #{t.prerequisites.join(' ')} #{LOADLIBES} -o #{t.name} "
30+ sh "#{LINKER} #{LDFLAGS} #{t.prerequisites.join(' ')} #{LOADLIBES} -o #{t.name} "
3031 end
3132
3233 rule '.o' => [proc{|t| t.pathmap("../src/%n.c") }] do |t|