• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

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


Commit MetaInfo

Revisãof4046c5954cad525d54b1f2e8298cc1e0fc37116 (tree)
Hora2015-11-19 01:48:30
Autorornse01 <ornse01@user...>
Commiterornse01

Mensagem de Log

replace compiler setting. gcc to clang.

Mudança Sumário

Diff

--- 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|