This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fwd: [PATCH 3/4] Add libgomp plugin for Intel MIC


On Thu, Aug 06, 2015 at 05:34:56PM +0300, Maxim Blumental wrote:
>  Applied the idea with python script alternative. Review, please.

> 2015-07-28  Maxim Blumenthal  <maxim.blumenthal@intel.com>
> 
> 	* configure.ac: Add a check for xxd or python presence when the target
> 	is intelmic or intelmicemul.
> 	* configure: Regenerate.
> 	* liboffloadmic/plugin/Makefile.am: Add a condition into
> 	make_target_image.h generating code.  This condition performs an
> 	action with either xxd or a special python script during the
> 	generating.
> 	* liboffloadmic/plugin/xxd.py: New file.
> 	* liboffloadmic/plugin/Makefile.in: Regenerate.

I still don't like this, there should be no `which ...` uses in the
Makefile.
Instead, use AC_CHECK_PROG/AC_CHECK_PROGS in configure.ac, for python
perhaps search for python python2 python3 or what is common in the python
land.  And prepare the command line to use in the Makefile.am in configure
too, then AC_SUBST it and use the variable in there (and the variable will
use $@ etc.).

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]