[SCM] Lisaac compiler branch, master, updated. lisaac-0.12-606-g4554e79

Mildred Ki'Lya silkensedai at online.fr
Mon Mar 1 01:31:33 UTC 2010


The following commit has been merged in the master branch:
commit 1ca038c05b22b6b2ac57cbd10239eb072ace64e6
Author: Mildred Ki'Lya <silkensedai at online.fr>
Date:   Fri Sep 11 14:16:15 2009 +0200

    Added -partial option to make.lip to prevent GCC from running

diff --git a/make.lip.sample b/make.lip.sample
index 00f4072..b5c1926 100644
--- a/make.lip.sample
+++ b/make.lip.sample
@@ -44,7 +44,8 @@ Section Private
   // Generate code.
   + is_cop:BOOLEAN;     // Correct value after compilation.
   + is_library:BOOLEAN; // For build a lisaac library C 
-  
+  + execute_back_end:BOOLEAN := TRUE;
+
   // Other.
   + is_statistic:BOOLEAN;
   + is_quiet:BOOLEAN;
@@ -176,19 +177,21 @@ Section Private
   
   - general_back_end <-
   (
-    (is_cop).if {
-      lib_gcc := lib_gcc + " -lpthread";
-    };
-    ((target = "dos") | (target = "windows")).if {
-      execute_file := output_file + ".exe";
-    } else {
-      execute_file := output_file;
-    };
-    option_gcc := option_gcc + " -U_FORTIFY_SOURCE ";
-    (is_library).if {
-      execute ("gcc " + output_file + ".c -c " + option_gcc);
-    } else {
-      execute ("gcc " + output_file + ".c -o " + output_file + option_gcc + lib_gcc);
+    (execute_back_end).if {
+      (is_cop).if {
+        lib_gcc := lib_gcc + " -lpthread";
+      };
+      ((target = "dos") | (target = "windows")).if {
+        execute_file := output_file + ".exe";
+      } else {
+        execute_file := output_file;
+      };
+      option_gcc := option_gcc + " -U_FORTIFY_SOURCE ";
+      (is_library).if {
+        execute ("gcc " + output_file + ".c -c " + option_gcc);
+      } else {
+        execute ("gcc " + output_file + ".c -o " + output_file + option_gcc + lib_gcc);
+      };
     };
   );
   
@@ -289,6 +292,12 @@ Section Public
   (
     option_gcc := option_gcc + " " + option;
   );
+
+  - partial <-
+  // Only generate C code and don't compile it with GCC
+  (
+    execute_back_end := FALSE;
+  );
   
   //
   // Other.

-- 
Lisaac compiler



More information about the Lisaac-commits mailing list