mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
Move compile-time checks around pa_run_from_build_tree to core-util
To make the code cleaner and have the checks all in one place.
This commit is contained in:
parent
72323bc6bb
commit
93348331bb
4 changed files with 10 additions and 21 deletions
|
|
@ -2991,9 +2991,6 @@ pa_bool_t pa_run_from_build_tree(void) {
|
|||
char *rp;
|
||||
pa_bool_t b = FALSE;
|
||||
|
||||
/* We abuse __OPTIMIZE__ as a check whether we are a debug build
|
||||
* or not. */
|
||||
|
||||
if ((rp = pa_readlink("/proc/self/exe"))) {
|
||||
b = pa_startswith(rp, PA_BUILDDIR);
|
||||
pa_xfree(rp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue