Login | Register
My pages Projects Community openCollabNet

Discussions > SCons Development (OBSOLETE) > Re: [scons-dev] REVIEW: use smart C/C++ linking in the Intel tool chain (Dmitry Girgorenko and Gary Oberbrunner)

Project highlights:

14 Nov 2017: Release 3.0.1 is now available at the download page.

18 Sep 2017: Release 3.0.0 is now available at the download page.

03 Nov 2016: Release 2.5.1 is now available at the download page.

scons
Discussion topic

Back to topic list

Re: [scons-dev] REVIEW: use smart C/C++ linking in the Intel tool chain (Dmitry Girgorenko and Gary Oberbrunner)

Author stevenknight
Full name Steven Knight
Date 2007-03-06 13:44:04 PST
Message Hi Gary--

>> Gary, I decided to put Dmitry's test in a new test/Intel subdirectory.
>> I don't have the Intel compiler installed so I couldn't test it directly.
>> It looks pretty simple, but I'd appreciate it if you could validate it
>> and let me know if it needs a follow-on patch.
>>
> ...
>> + + icpc = test.where_is('icpc')
>
> This doesn't work well, since icpc is normally installed in
> /opt/intel/{cc,cce}/​x.y.zzz/bin/icpc
> rather than somewhere on a "normal" user's path. Since I use scons I've never
> bothered to put it on my path! ;-) But if I hardcode the path in the test it
> works OK (fails without the patch, succeeds with it). Can the test use the
> tool's detect() method to detect it, or is that hard?
>
> Also, I had to add "#include <iostream>" to the top of hello.cpp to avoid a
> warning.

Thanks for testing; let's do this next one *before* I check it in... :-)

The test infrastructure does have a detect_tool() method; I should have
just used that from the beginning.

Could you test the patch below and let me know if it works out of the
box for you?

         --SK

*** /home/scons/scons/br​anch.0/branch.96/bas​eline/test/Intel/icp​c-link.py 2007-03-06 15:20:32.000000000 -0600
--- /home/knight/SCons/s​cons.0.96.C755/test/​Intel/icpc-link.py 2007-03-06 15:41:49.000000000 -0600
***************
*** 35,50 ****

   test = TestSCons.TestSCons()

! icpc = test.where_is('icpc')
! if not icpc:
! test.skip_test("Could not find 'icpc'; skipping test(s).\n")

! test.write('SConstruct', """
   env = Environment(tools=['default', 'intelc'])
   env.Program('hw', 'hw.cpp')
   """)

   test.write('hw.cpp', """\
   int
   main()
   {
--- 35,51 ----

   test = TestSCons.TestSCons()

! intelc = test.detect_tool('intelc')
! if not intelc:
! test.skip_test("Could not load 'intelc' Tool; skipping test(s).\n")

! test.write('SConstruct', """\
   env = Environment(tools=['default', 'intelc'])
   env.Program('hw', 'hw.cpp')
   """)

   test.write('hw.cpp', """\
+ #include <iostream>
   int
   main()
   {

« Previous message in topic | 4 of 8 | Next message in topic »

Messages

Show all messages in topic

REVIEW: use smart C/C++ linking in the Intel tool chain (Dmitry Girgorenko and Gary Oberbrunner) stevenknight Steven Knight 2007-03-06 11:32:38 PST
     RE: [scons-dev] REVIEW: use smart C/C++ linking in the Intel tool chain (Dmitry Girgorenko and Gary Oberbrunner) Sohail Somani <s dot somani at fincad dot com> Sohail Somani <s dot somani at fincad dot com> 2007-03-06 12:30:54 PST
     Re: [scons-dev] REVIEW: use smart C/C++ linking in the Intel tool chain (Dmitry Girgorenko and Gary Oberbrunner) garyo Gary Oberbrunner 2007-03-06 13:32:29 PST
         Re: [scons-dev] REVIEW: use smart C/C++ linking in the Intel tool chain (Dmitry Girgorenko and Gary Oberbrunner) stevenknight Steven Knight 2007-03-06 13:44:04 PST
             Re: [scons-dev] REVIEW: use smart C/C++ linking in the Intel tool chain (Dmitry Girgorenko and Gary Oberbrunner) garyo Gary Oberbrunner 2007-03-06 13:58:12 PST
     Suggestion for testing WAS: REVIEW: use smart C/C++ linking in the Intel tool chain (Dmitry Girgorenko and Gary Oberbrunner) mortenelo Morten Elo Petersen 2007-03-07 01:01:20 PST
         Re: [scons-dev] Suggestion for testing WAS: REVIEW: use smart C/C++ linking in the Intel tool chain (Dmitry Girgorenko and Gary Oberbrunner) stevenknight Steven Knight 2007-03-07 05:24:09 PST
             Re: [scons-dev] Suggestion for testing WAS: REVIEW: use smart C/C++ linking in the Intel tool chain (Dmitry Girgorenko and Gary Oberbrunner) garyo Gary Oberbrunner 2007-03-07 06:36:04 PST
Messages per page: