Skip to content

Commit

Permalink
Avoid passing compiler options into rc.exe (#14378)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobIsOnFire authored Jul 29, 2023
1 parent daf32ac commit 4d56b9a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion conan/tools/microsoft/msbuilddeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class MSBuildDeps(object):
<ResourceCompile>
<AdditionalIncludeDirectories>$(Conan{{name}}IncludeDirectories)%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>$(Conan{{name}}PreprocessorDefinitions)%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalOptions>$(Conan{{name}}CompilerFlags) %(AdditionalOptions)</AdditionalOptions>
</ResourceCompile>
</ItemDefinitionGroup>
{% else %}
Expand Down
1 change: 0 additions & 1 deletion conan/tools/microsoft/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class MSBuildToolchain(object):
</Link>
<ResourceCompile>
<PreprocessorDefinitions>{{ defines }}%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalOptions>{{ compiler_flags }} %(AdditionalOptions)</AdditionalOptions>
</ResourceCompile>
</ItemDefinitionGroup>
<PropertyGroup Label="Configuration">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def test_msbuildtoolchain_props_with_extra_flags():
expected_resource_compile = """
<ResourceCompile>
<PreprocessorDefinitions>DEF1;DEF2;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalOptions>--flag1 --flag2 --flag3 --flag4 %(AdditionalOptions)</AdditionalOptions>
</ResourceCompile>"""
assert expected_cl_compile in toolchain
assert expected_link in toolchain
Expand Down
2 changes: 0 additions & 2 deletions conans/test/unittests/tools/microsoft/test_msbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def test_resource_compile():
<PreprocessorDefinitions>
MYTEST=MYVALUE;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<AdditionalOptions> %(AdditionalOptions)</AdditionalOptions>
</ResourceCompile>"""

props_file = load(props_file) # Remove all blanks and CR to compare
Expand Down Expand Up @@ -274,7 +273,6 @@ def test_msbuildtoolchain_changing_flags_via_attributes():
expected_resource_compile = """
<ResourceCompile>
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalOptions>/flag1 /flag2 %(AdditionalOptions)</AdditionalOptions>
</ResourceCompile>"""
assert expected_cl_compile in toolchain
assert expected_link in toolchain
Expand Down

0 comments on commit 4d56b9a

Please sign in to comment.