diff options
Diffstat (limited to 'rakelib')
| -rw-r--r-- | rakelib/doc.rake | 5 | ||||
| -rw-r--r-- | rakelib/gcc.rake | 9 |
2 files changed, 8 insertions, 6 deletions
diff --git a/rakelib/doc.rake b/rakelib/doc.rake index 54f5d35..7838871 100644 --- a/rakelib/doc.rake +++ b/rakelib/doc.rake @@ -19,8 +19,9 @@ rule '.bbl' => '.bcf' do |t| end namespace :doc do - task :tex do - sh 'pdflatex', '-output-directory', '../build/doc', 'report', chdir: 'doc' + task tex: 'build/doc' do |t| + sh 'pdflatex', '-output-directory', "../#{t.prerequisites.first}", 'report', + chdir: 'doc' end end diff --git a/rakelib/gcc.rake b/rakelib/gcc.rake index 39b4442..3f36ce9 100644 --- a/rakelib/gcc.rake +++ b/rakelib/gcc.rake @@ -10,7 +10,7 @@ require 'pathname' def gcc_verbose(gcc_binary) read, write = IO.pipe - sh({'LANG' => 'C'}, gcc_binary, '--verbose', err: write) + sh({'LC_ALL' => 'C'}, gcc_binary, '--verbose', err: write) write.close output = read.read read.close @@ -60,10 +60,10 @@ end namespace :gcc do # Dependencies. - GCC_VERSION = "15.2.0" + GCC_VERSION = "15.3.0" HOST_GCC = 'build/host/gcc' HOST_INSTALL = 'build/host/install' - GCC_PATCH = 'https://raw.githubusercontent.com/Homebrew/formula-patches/575ffcaed6d3112916fed77d271dd3799a7255c4/gcc/gcc-15.1.0.diff' + GCC_PATCH = 'https://raw.githubusercontent.com/Homebrew/homebrew-core/refs/heads/main/Patches/gcc/gcc-15.3.0.diff' directory HOST_GCC directory HOST_INSTALL @@ -84,9 +84,10 @@ namespace :gcc do configure_options = [ "--prefix=#{File.realpath HOST_INSTALL}", - '--enable-languages=c,c++,elna', + '--enable-languages=c,c++,jit,elna', '--disable-bootstrap', '--disable-multilib', + '--enable-host-shared', '--with-system-zlib', "--target=#{build_target}", "--build=#{build_target}", |
