From: Michael D. Lowis Date: Wed, 24 Sep 2014 15:08:49 +0000 (-0400) Subject: Fixed the rakefile to always use clang X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=6d14a22dac33a48273574a906024b9e63f8c0fb5;p=proto%2Fsclpl.git Fixed the rakefile to always use clang --- 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