You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.0 KiB

  1. @echo off
  2. REM
  3. REM Copyright 2005-2013 Intel Corporation. All Rights Reserved.
  4. REM
  5. REM This file is part of Threading Building Blocks.
  6. REM
  7. REM Threading Building Blocks is free software; you can redistribute it
  8. REM and/or modify it under the terms of the GNU General Public License
  9. REM version 2 as published by the Free Software Foundation.
  10. REM
  11. REM Threading Building Blocks is distributed in the hope that it will be
  12. REM useful, but WITHOUT ANY WARRANTY; without even the implied warranty
  13. REM of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. REM GNU General Public License for more details.
  15. REM
  16. REM You should have received a copy of the GNU General Public License
  17. REM along with Threading Building Blocks; if not, write to the Free Software
  18. REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  19. REM
  20. REM As a special exception, you may use this file as part of a free software
  21. REM library without restriction. Specifically, if other files instantiate
  22. REM templates or use macros or inline functions from this file, or you compile
  23. REM this file and link it with other files to produce an executable, this
  24. REM file does not by itself cause the resulting executable to be covered by
  25. REM the GNU General Public License. This exception does not however
  26. REM invalidate any other reasons why the executable file might be covered by
  27. REM the GNU General Public License.
  28. REM
  29. set cmd_line=
  30. :while
  31. if NOT "%1"=="" (
  32. REM no LD_PRELOAD under Windows
  33. REM but run the test to check "#pragma comment" construction
  34. if "%1"=="-l" (
  35. REM The command line may specify -l with empty dll name,
  36. REM e.g. "test_launcher.bat -l app.exe". If the dll name is
  37. REM empty then %2 contains the application name and the SHIFT
  38. REM operation is not necessary.
  39. if exist "%3" SHIFT
  40. GOTO continue
  41. )
  42. REM no need to setup up stack size under Windows
  43. if "%1"=="-u" GOTO continue
  44. set cmd_line=%cmd_line% %1
  45. :continue
  46. SHIFT
  47. GOTO while
  48. )
  49. %cmd_line%