diff --git a/src/bare.lsp.in b/src/bare.lsp.in index 10ecd6838..b89b9521b 100644 --- a/src/bare.lsp.in +++ b/src/bare.lsp.in @@ -33,6 +33,9 @@ ;;; ;;; * Load the compiler. ;;; +#-threads +(defmacro c::with-lock ((lock) &body body) + (print `(progn ,@body)) ) (load #+(or cross ecl-min) "@abs_builddir@/cmp/load.lsp" #-(or cross ecl-min) "@abs_builddir@/cmp.so") diff --git a/src/cmp/cmpdefs.lsp b/src/cmp/cmpdefs.lsp index 9ea9026f8..c6be2fdd6 100644 --- a/src/cmp/cmpdefs.lsp +++ b/src/cmp/cmpdefs.lsp @@ -14,7 +14,7 @@ (defpackage "C" (:nicknames "COMPILER") - (:use "FFI" "CL") + (:use "FFI" "CL" #+threads "MP") (:export "*COMPILER-BREAK-ENABLE*" "*COMPILE-PRINT*" "*COMPILE-TO-LINKING-CALL*" diff --git a/src/cmp/cmpmain.lsp b/src/cmp/cmpmain.lsp index 5cb198b6e..21171bedc 100644 --- a/src/cmp/cmpmain.lsp +++ b/src/cmp/cmpmain.lsp @@ -350,7 +350,7 @@ Cannot compile ~a." (shared-data-pathname (get-output-pathname o-pathname shared-data-file :sdata))) - (mp:with-lock (mp::+load-compile-lock+) + (with-lock (+load-compile-lock+) (init-env) (when (probe-file "./cmpinit.lsp") @@ -432,7 +432,7 @@ Cannot compile ~a." (setq *error-p* t) (values nil t t)) )) - ) ; mp:with-lock + ) ; with-lock ) #-dlopen @@ -494,7 +494,7 @@ Cannot compile ~a." (o-pathname (compile-file-pathname data-pathname :type :object)) (so-pathname (compile-file-pathname data-pathname))) - (mp:with-lock (mp::+load-compile-lock+) + (with-lock (+load-compile-lock+) (init-env) (data-init) (t1expr form) @@ -571,7 +571,7 @@ Cannot compile ~a." (*error-count* 0) (t3local-fun (symbol-function 'T3LOCAL-FUN)) (t3fun (get-sysprop 'DEFUN 'T3))) - (mp:with-lock (mp::+load-compile-lock+) + (with-lock (+load-compile-lock+) (unwind-protect (progn (put-sysprop 'DEFUN 'T3