Hardcoded symbol production

Needs to be toggled by the `--debug-symbols` flag instead of hard coded
This commit is contained in:
Lukas Oberhuber 2022-07-26 12:13:38 +01:00
parent f4cb9a40a6
commit 74dd365a56
2 changed files with 11 additions and 3 deletions

View File

@ -100,6 +100,7 @@ module Superenv
# d - Don't strip -march=<target>. Use only in formulae that
# have runtime detection of CPU features.
# w - Pass -no_weak_imports to the linker
# D - Generate debugging information
#
# These flags will also be present:
# a - apply fix for apr-1-config path
@ -282,7 +283,9 @@ module Superenv
sig { returns(String) }
def determine_cccfg
""
# TODO: temporarily hard code symbol generation
# ""
"D"
end
public
@ -331,6 +334,12 @@ module Superenv
append_to_cccfg "g" if compiler == :clang
end
sig { void }
def debug_symbols
# TODO: how do I get this method called?
append_to_cccfg "D" if OS.mac?
end
# @private
sig { void }
def refurbish_args

View File

@ -401,8 +401,7 @@ class Cmd
end
def debug_symbols?
mac?
# && config.include?("D")
config.include?("D")
end
def canonical_path(path)