diff --git a/src/tools/gcc.lua b/src/tools/gcc.lua index 07f15e0a..71524767 100644 --- a/src/tools/gcc.lua +++ b/src/tools/gcc.lua @@ -171,7 +171,7 @@ }, visibility = { Default = "-fvisibility=default", - Hidden = { "-fvisibility=hidden", "-fvisibility-inlines-hidden" }, + Hidden = "-fvisibility=hidden", Internal = "-fvisibility=internal", Protected = "-fvisibility=protected", } diff --git a/tests/tools/test_gcc.lua b/tests/tools/test_gcc.lua index 3066308e..4a08230a 100644 --- a/tests/tools/test_gcc.lua +++ b/tests/tools/test_gcc.lua @@ -822,8 +822,8 @@ function suite.cxxflags_onVisibilityHidden() visibility "Hidden" prepare() - test.excludes({ "-fvisibility=hidden", "-fvisibility-inlines-hidden" }, gcc.getcflags(cfg)) - test.contains({ "-fvisibility=hidden", "-fvisibility-inlines-hidden" }, gcc.getcxxflags(cfg)) + test.excludes({ "-fvisibility=hidden" }, gcc.getcflags(cfg)) + test.contains({ "-fvisibility=hidden" }, gcc.getcxxflags(cfg)) end function suite.cxxflags_onVisibilityInternal()