Changeset 374 for asp3_tinet_ecnl_arm/trunk/asp3_dcre/tecsgen/tecsgen.rb
- Timestamp:
- Apr 5, 2019, 9:26:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/asp3_dcre/tecsgen/tecsgen.rb
r352 r374 5 5 # Generator for TOPPERS Embedded Component System 6 6 # 7 # Copyright (C) 2008-201 7by TOPPERS Project7 # Copyright (C) 2008-2019 by TOPPERS Project 8 8 #-- 9 9 # 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ … … 54 54 # Authors list is in i-ro-ha order. 55 55 #Version:: see version.rb 56 $Copyright = "Copyright(c) 2008-201 7, TOPPERS project. All rights reserved."56 $Copyright = "Copyright(c) 2008-2019, TOPPERS project. All rights reserved." 57 57 $License = "TOPPERS License" 58 58 … … 223 223 analyze_option addtional_option_parser 224 224 load_modules 225 setup 225 if ! $TECSFLOW then 226 setup 227 end 226 228 227 229 dbgPrint "tecspath: #{$tecsgen_base_path}, __FILE__=#{__FILE__}\n" … … 284 286 ARGV.each { |a| $arguments += " " + a } 285 287 286 $unopt = false # bool: disable optimizing 288 $unopt = false # bool: disable optimizing both call and entry port 289 $unopt_entry= false # bool: disable optimizing entry port 287 290 $gen_base = "gen" # string: folder path to place generated files 288 291 $gen = $gen_base # string: folder path to place generated files … … 385 388 $unopt = true 386 389 } 390 parser.on('--unoptimize-entry', 'unoptimize entry port') { 391 $unopt_entry = true 392 } 387 393 parser.on('-c', '--cpp=cpp_cmd', 'C pre-processor command used import_C (default: gcc -E -DTECSGEN), you can also specify by environment variable TECS_CPP' ){ 388 394 |arg| … … 465 471 } 466 472 467 if ARGV.empty? && ! $print_version && ! $unit_test 473 if ARGV.empty? && ! $print_version && ! $unit_test && ! $TECSFLOW 468 474 ARGV.options{|parser| 469 475 puts parser.help … … 482 488 # このファイルを誤って読み込むと、異なるバージョン名を表示してしまう 483 489 require_tecsgen_lib 'tecslib/version.rb' 484 if $t ecscde_versionthen485 STDERR << " tecscde version #{$tecscde_version} (tecsgen version #{$version}) #{$Copyright}\n"490 if $title then 491 STDERR << "#{$title} version #{$tool_version} (tecsgen version #{$version}) #{$Copyright}\n" 486 492 elsif ! $no_banner || $print_version 487 493 STDERR << "tecsgen version #{$version} #{$Copyright}\n" … … 490 496 STDERR << "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE} patchlevel #{RUBY_PATCHLEVEL}) [#{RUBY_PLATFORM}]\n" 491 497 end 492 if $print_version && ARGV.empty? 498 if $print_version && ARGV.empty? && ! $TECSFLOW 493 499 exit 494 500 end … … 518 524 require_tecsgen_lib 'tecslib/core/tool_info.rb' 519 525 require_tecsgen_lib 'tecslib/core/tecsinfo.rb' 526 require_tecsgen_lib 'tecslib/core/unjoin_plugin.rb' 520 527 require_tecsgen_lib 'tecslib/plugin/CelltypePlugin.rb' 521 528 require_tecsgen_lib 'tecslib/plugin/CompositePlugin.rb' … … 601 608 # クラス変数のリセットを確実に行う必要がある 602 609 603 if $TECSCDE != true then610 if $TECSCDE != true && $TECSFLOW != true then 604 611 begin 605 612 TECSGEN.init … … 607 614 tecsgen.run1 608 615 tecsgen.run2 616 tecsgen.dump_tecsgen_rbdmp 609 617 rescue => evar 610 618 print_exception( evar )
Note:
See TracChangeset
for help on using the changeset viewer.