From 6d14a22dac33a48273574a906024b9e63f8c0fb5 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 24 Sep 2014 11:08:49 -0400 Subject: [PATCH] Fixed the rakefile to always use clang --- Rakefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index e9cf8a0..f5a3320 100644 --- a/Rakefile +++ b/Rakefile @@ -10,7 +10,7 @@ end # Define the compiler environment BaseEnv = BuildEnv.new(echo: :command) do |env| env.build_dir('source','build/obj/source') - env.set_toolset(:gcc) + env.set_toolset(:clang) env["CFLAGS"] += ['--std=c99', '-Wall', '-Wextra']#, '-Werror'] end @@ -38,9 +38,10 @@ file "#{CLANG_BIN_DIR}/#{CLANG_BIN_NAME}" => ["#{CLANG_BUILD_DIR}/Makefile"] + F end end -task :clang => ["#{CLANG_BIN_DIR}/#{CLANG_BIN_NAME}"] do - ENV['PATH'] = "#{CLANG_BIN_DIR}#{windows? ? ';':':'}#{ENV['PATH']}" -end +task :clang => ["#{CLANG_BIN_DIR}/#{CLANG_BIN_NAME}"] + +# Register clang with the environment +ENV['PATH'] = "#{CLANG_BIN_DIR}#{windows? ? ';':':'}#{ENV['PATH']}" #------------------------------------------------------------------------------ # Rscons Build Targets -- 2.52.0