Best Practice for an ASDF Variable Like *compile-file-failure-behaviour*

2018-03-09 Thread Mark H. David
As has been discussed here over the years, asdf:*compile-file-failure-behaviour* is :warn on most platforms, but it is notoriously :error on #+sbcl. So what would you do if you wanted to change asdf:*compile-file-failure-behaviour* to be :warn on #+SBCL? How would you recommend to change it.

Re: Best Practice for an ASDF Variable Like *compile-file-failure-behaviour*

2018-03-09 Thread Robert Goldman
OK, then I believe that defining the method for `OPERATE` will give you what you want. You can put that definition in `my-system.asd` below the `defsystem` for "my-system". There's only one problem with that -- if you `load-system` on "my-system" before `my-system.asd` has been loaded (e.g.,

Re: Best Practice for an ASDF Variable Like *compile-file-failure-behaviour*

2018-03-09 Thread Faré
On Fri, Mar 9, 2018 at 5:34 PM, Robert Goldman wrote: > Are you just using this for yourself? If so, a simple > > (let ((asdf:*compile-file-failure-behaviour* :warn)) > (asdf:load-system "my system")) > > will suffice. > Yup. > Alternatively, you could put something like

Re: Best Practice for an ASDF Variable Like *compile-file-failure-behaviour*

2018-03-09 Thread Robert Goldman
On 9 Mar 2018, at 17:02, Faré wrote: On Fri, Mar 9, 2018 at 5:34 PM, Robert Goldman wrote: Are you just using this for yourself? If so, a simple (let ((asdf:*compile-file-failure-behaviour* :warn)) (asdf:load-system "my system")) will suffice. Yup.

Re: Best Practice for an ASDF Variable Like *compile-file-failure-behaviour*

2018-03-09 Thread Robert Goldman
Are you just using this for yourself? If so, a simple ``` (let ((asdf:*compile-file-failure-behaviour* :warn)) (asdf:load-system "my system")) ``` will suffice. Alternatively, you could put something like this in the `.asd` file: ``` (defmethod operate :around ((operation load-op)

Re: Best Practice for an ASDF Variable Like *compile-file-failure-behaviour*

2018-03-09 Thread Mark H. David
No, it's what we want for our system. We want everyone who builds our system to get this behavior reliably. - Original message - From: Robert Goldman To: "Mark H. David" Cc: "ASDF-devel" Subject: Re: Best Practice for an

Re: Best Practice for an ASDF Variable Like *compile-file-failure-behaviour*

2018-03-09 Thread Mark H. David
Actually, I see these lines in the file asdf.lisp in my sbcl distribution (SBCL 1.4): > (defmethod operate :around (operation component keys >verbose > (on-warnings *compile-file-warnings- >

Re: Best Practice for an ASDF Variable Like *compile-file-failure-behaviour*

2018-03-09 Thread Faré
On Fri, Mar 9, 2018 at 7:32 PM, Mark H. David wrote: > Actually, I see these lines in the file asdf.lisp in my sbcl distribution > (SBCL 1.4): > > (defmethod operate :around (operation component keys >verbose >