@@ -970,7 +970,7 @@ def test_should_recompile_files_after_changing_compile_options(self):
970970 self .update (file3 )
971971 self .assert_should_recompile ([])
972972
973- file2 .set_compile_option ("ghdl.flags " , ["--no-vital-checks" ])
973+ file2 .set_compile_option ("ghdl.a_flags " , ["--no-vital-checks" ])
974974 self .assert_should_recompile ([file2 , file3 ])
975975
976976 def test_should_recompile_files_after_changing_vhdl_standard (self ):
@@ -991,37 +991,37 @@ def test_should_recompile_files_after_changing_vhdl_standard(self):
991991 def test_add_compile_option (self ):
992992 self .project .add_library ("lib" , "lib_path" )
993993 file1 = self .add_source_file ("lib" , "file.vhd" , "" )
994- file1 .add_compile_option ("ghdl.flags " , ["--foo" ])
995- self .assertEqual (file1 .get_compile_option ("ghdl.flags " ), ["--foo" ])
996- file1 .add_compile_option ("ghdl.flags " , ["--bar" ])
997- self .assertEqual (file1 .get_compile_option ("ghdl.flags " ), ["--foo" , "--bar" ])
998- file1 .set_compile_option ("ghdl.flags " , ["--xyz" ])
999- self .assertEqual (file1 .get_compile_option ("ghdl.flags " ), ["--xyz" ])
994+ file1 .add_compile_option ("ghdl.a_flags " , ["--foo" ])
995+ self .assertEqual (file1 .get_compile_option ("ghdl.a_flags " ), ["--foo" ])
996+ file1 .add_compile_option ("ghdl.a_flags " , ["--bar" ])
997+ self .assertEqual (file1 .get_compile_option ("ghdl.a_flags " ), ["--foo" , "--bar" ])
998+ file1 .set_compile_option ("ghdl.a_flags " , ["--xyz" ])
999+ self .assertEqual (file1 .get_compile_option ("ghdl.a_flags " ), ["--xyz" ])
10001000
10011001 def test_add_compile_option_does_not_mutate_argument (self ):
10021002 self .project .add_library ("lib" , "lib_path" )
10031003 file1 = self .add_source_file ("lib" , "file.vhd" , "" )
10041004 options = ["--foo" ]
1005- file1 .add_compile_option ("ghdl.flags " , options )
1005+ file1 .add_compile_option ("ghdl.a_flags " , options )
10061006 options [0 ] = "--xyz"
1007- self .assertEqual (file1 .get_compile_option ("ghdl.flags " ), ["--foo" ])
1008- file1 .add_compile_option ("ghdl.flags " , ["--bar" ])
1007+ self .assertEqual (file1 .get_compile_option ("ghdl.a_flags " ), ["--foo" ])
1008+ file1 .add_compile_option ("ghdl.a_flags " , ["--bar" ])
10091009 self .assertEqual (options , ["--xyz" ])
10101010
10111011 def test_set_compile_option_does_not_mutate_argument (self ):
10121012 self .project .add_library ("lib" , "lib_path" )
10131013 file1 = self .add_source_file ("lib" , "file.vhd" , "" )
10141014 options = ["--foo" ]
1015- file1 .set_compile_option ("ghdl.flags " , options )
1015+ file1 .set_compile_option ("ghdl.a_flags " , options )
10161016 options [0 ] = "--xyz"
1017- self .assertEqual (file1 .get_compile_option ("ghdl.flags " ), ["--foo" ])
1017+ self .assertEqual (file1 .get_compile_option ("ghdl.a_flags " ), ["--foo" ])
10181018
10191019 def test_compile_option_validation (self ):
10201020 self .project .add_library ("lib" , "lib_path" )
10211021 source_file = self .add_source_file ("lib" , "file.vhd" , "" )
10221022 self .assertRaises (ValueError , source_file .set_compile_option , "foo" , None )
1023- self .assertRaises (ValueError , source_file .set_compile_option , "ghdl.flags " , None )
1024- self .assertRaises (ValueError , source_file .add_compile_option , "ghdl.flags " , None )
1023+ self .assertRaises (ValueError , source_file .set_compile_option , "ghdl.a_flags " , None )
1024+ self .assertRaises (ValueError , source_file .add_compile_option , "ghdl.a_flags " , None )
10251025 self .assertRaises (ValueError , source_file .get_compile_option , "foo" )
10261026
10271027 def test_should_recompile_files_affected_by_change_with_later_timestamp (self ):
0 commit comments