Skip to content

Commit

Permalink
Revert "Update wake-format's search libdir to match wake's libdir" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
V-FEXrt authored Feb 7, 2024
1 parent 7d304e4 commit a1fcde6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tools/wake-format/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include <stdio.h>
#include <wcl/doc.h>
#include <wcl/filepath.h>

#include <fstream>
#include <iostream>
Expand All @@ -36,7 +35,6 @@
#include "parser/syntax.h"
#include "parser/wakefiles.h"
#include "util/diagnostic.h"
#include "util/execpath.h"
#include "util/file.h"
#include "wcl/diff.h"
#include "wcl/xoshiro_256.h"
Expand Down Expand Up @@ -201,9 +199,7 @@ int main(int argc, char **argv) {
user_warn = fopen("/dev/null", "w");
if (auto_find_files) {
bool ok = true;
// Use the standard libdir to more closely match wake discovery
std::string libdir = wcl::make_canonical(find_execpath() + "/../share/wake/lib");
wakefiles = find_all_wakefiles(ok, true, false, libdir, ".", user_warn);
wakefiles = find_all_wakefiles(ok, true, false, ".", ".", user_warn);
if (!ok) {
std::cerr << "Failed to automatically discover wake files" << std::endl;
exit(EXIT_FAILURE);
Expand Down

0 comments on commit a1fcde6

Please sign in to comment.