Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BOLT] Fix archive output directory for standalone on Mac #100643

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

RossComputerGuy
Copy link
Contributor

CC @gulfemsavrun

Fixes a line which wasn't changed in #97130

@llvmbot
Copy link
Member

llvmbot commented Jul 25, 2024

@llvm/pr-subscribers-bolt

Author: Tristan Ross (RossComputerGuy)

Changes

CC @gulfemsavrun

Fixes a line which wasn't changed in #97130


Full diff: https://github.com/llvm/llvm-project/pull/100643.diff

1 Files Affected:

  • (modified) bolt/runtime/CMakeLists.txt (+1-1)
diff --git a/bolt/runtime/CMakeLists.txt b/bolt/runtime/CMakeLists.txt
index 948825ddc27eb..40f4fbc9f30d5 100644
--- a/bolt/runtime/CMakeLists.txt
+++ b/bolt/runtime/CMakeLists.txt
@@ -61,7 +61,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang.*" AND CMAKE_SYSTEM_NAME STREQUAL "Da
     instr.cpp
     ${CMAKE_CURRENT_BINARY_DIR}/config.h
   )
-  set_target_properties(bolt_rt_instr_osx PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${LLVM_LIBRARY_DIR}")
+  set_target_properties(bolt_rt_instr_osx PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_INSTALL_LIBDIR}${LLVM_LIBDIR_SUFFIX}")
   target_include_directories(bolt_rt_instr_osx PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
   target_compile_options(bolt_rt_instr_osx PRIVATE
     -target x86_64-apple-darwin19.6.0

@rafaelauler rafaelauler merged commit 5909979 into llvm:main Jul 25, 2024
8 checks passed
@RossComputerGuy RossComputerGuy deleted the fix/bolt-osx branch July 25, 2024 20:30
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2024

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building bolt at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/4281

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang Tools :: clang-doc/basic-project.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
Emiting docs in html format.
Mapping decls...
Collecting infos...
Reducing 5 infos...
Generating docs...
Generating assets for docs...

--
Command Output (stderr):
--
RUN: at line 1: rm -rf /build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp && mkdir -p /build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs /build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build
+ rm -rf /build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp
+ mkdir -p /build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs /build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build
RUN: at line 2: sed 's|$test_dir|/build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc|g' /build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/database_template.json > /build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
+ sed 's|$test_dir|/build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc|g' /build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/database_template.json
RUN: at line 3: clang-doc --format=html --output=/build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs --executor=all-TUs /build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
+ clang-doc --format=html --output=/build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs --executor=all-TUs /build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/build/compile_commands.json
[1/3] Processing file /build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Rectangle.cpp
[2/3] Processing file /build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Calculator.cpp
[3/3] Processing file /build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Circle.cpp
RUN: at line 4: FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/index_json.js -check-prefix=JSON-INDEX
+ FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/index_json.js -check-prefix=JSON-INDEX
RUN: at line 5: FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html -check-prefix=HTML-SHAPE
+ FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test -input-file=/build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html -check-prefix=HTML-SHAPE
/build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test:64:16: error: HTML-SHAPE: expected string not found in input
// HTML-SHAPE: <h3 id="{{([0-9A-F]{40})}}">area</h3>
               ^
/build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html:27:53: note: scanning from here
 <p>Defined at line 13 of file ./include/Shape.h</p>
                                                    ^
/build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html:47:41: note: possible intended match here
 <a href="#12896F9255F880ECD4A6482CCFA58B238FA2CC49">area</a>
                                        ^

Input file: /build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.test.tmp/docs/GlobalNamespace/Shape.html
Check file: /build/buildbot/premerge-monolithic-linux/llvm-project/clang-tools-extra/test/clang-doc/basic-project.test

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           22:  <div> 
...

@gulfemsavrun
Copy link
Contributor

CC @gulfemsavrun

Fixes a line which wasn't changed in #97130

Thanks, this fixed the problem I reported in #97130 (comment)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants