Merge: More macosx compat things
authorJean Privat <jean@pryen.org>
Sun, 14 Dec 2014 13:44:15 +0000 (08:44 -0500)
committerJean Privat <jean@pryen.org>
Sun, 14 Dec 2014 13:44:15 +0000 (08:44 -0500)
Are nedded to pass more tests on jenkins

http://gresil.org/jenkins/job/CI%20Github%20OSX/

Pull-Request: #1017
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

1  2 
src/compiler/abstract_compiler.nit
src/nitx.nit

@@@ -333,7 -333,7 +333,7 @@@ class MakefileToolchai
                        if libs != null then linker_options.add_all(libs)
                end
  
-               makefile.write("CC = ccache cc\nCXX = ccache c++\nCFLAGS = -g -O2 -Wno-unused-value -Wno-switch\nCINCL =\nLDFLAGS ?= \nLDLIBS  ?= -lm {linker_options.join(" ")}\n\n")
+               makefile.write("CC = ccache cc\nCXX = ccache c++\nCFLAGS = -g -O2 -Wno-unused-value -Wno-switch -Wno-attributes\nCINCL =\nLDFLAGS ?= \nLDLIBS  ?= -lm {linker_options.join(" ")}\n\n")
  
                var ost = toolcontext.opt_stacktrace.value
                if (ost == "libunwind" or ost == "nitstack") and (platform == null or platform.supports_libunwind) then makefile.write("NEED_LIBUNWIND := YesPlease\n")
@@@ -3067,7 -3067,7 +3067,7 @@@ en
  # Create a tool context to handle options and paths
  var toolcontext = new ToolContext
  
 -toolcontext.tooldescription = "Usage: nitg [OPTION]... file.nit...\nCompiles Nit programs."
 +toolcontext.tooldescription = "Usage: nitc [OPTION]... file.nit...\nCompiles Nit programs."
  
  # We do not add other options, so process them now!
  toolcontext.process_options(args)
diff --combined src/nitx.nit
@@@ -310,7 -310,7 +310,7 @@@ private class PagerMatchesRendere
                pager.render
        end
  
 -      private fun props_fulldoc(pager: Pager, raw_mprops: List[MProperty]) do
 +      fun props_fulldoc(pager: Pager, raw_mprops: List[MProperty]) do
                # group by module
                var cats = new HashMap[MModule, Array[MProperty]]
                for mprop in raw_mprops do
@@@ -347,7 -347,7 +347,7 @@@ private class Page
        fun add_indent do addn("  " * indent)
        fun addn(text: String) do content.append(text.escape)
        fun add_rule do add("\n---\n")
-       fun render do sys.system("echo \"{content}\" | pager -r")
+       fun render do sys.system("echo \"{content}\" | less -r")
  end
  
  redef class MModule