Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8475241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:50:28+00:00 2026-06-10T17:50:28+00:00

My project has top-level directory proj with subdirectories runtime and test . Basically, test

  • 0

My project has top-level directory proj with subdirectories runtime and test. Basically, test depends on runtime, but it’s a little more complicated.

Expected behavior: If you modify a file in runtime, then make runtime, then make test, this should rebuild test.

Actual behavior: For test, you get “make: Nothing to be done for `first’.”

Here are the relevant excerpts from the project files.

proj.pro:

test.depends = runtime

runtime.pro:

TEMPLATE = lib
CONFIG = no_link target_predeps staticlib
TARGET =

# Avoid building libruntime.a
QMAKE_AR_CMD = @true
QMAKE_RANLIB = @true

include(../proj.pri)

RUNTIME_SOURCES += \
    foo.c
    bar.c

proj.pri:

CLANG_RUNTIME_FLAGS = -emit-llvm
runtime.input = RUNTIME_SOURCES
runtime.output = lib${QMAKE_FILE_IN_BASE}.bc
runtime.commands = $$CLANG $$CLANG_RUNTIME_FLAGS -c ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
QMAKE_EXTRA_COMPILERS += runtime

In runtime‘s Makefile, there is a rule for target compiler_runtime_make_all that seems to correspond to the QMAKE_EXTRA_COMPILERS. The files built by this rule (foo.bc and bar.bc) are in the OBJECTS list, so they get built when you make this Makefile.

In test‘s Makefile, there is also a rule for target compiler_runtime_make_all, but it has no recipe and it’s not referred to anywhere.

So how do I tell test that it should depend on the QMAKE_EXTRA_COMPILERS for runtime?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:50:29+00:00Added an answer on June 10, 2026 at 5:50 pm

    In the top-level proj.pro (which I assume is TEMPLATE = subdirs), specifying that test depends on runtime only affects the order in which the top-level make is run on the specified SUBDIRS. It does not introduce any additional dependencies in any of the subdirectories — those are all totally independent invocations of qmake and make.

    So, to solve this, you’ll need to have test.pro indicate the specific runtime files it depends on. See the POST_TARGETDEPS variable.

    Or if you’re using QMAKE_EXTRA_COMPILERS to build the sources in test.pro, you could add something like this:

    test.depends = $${ROOT}/runtime/lib*.bc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The project has been working fine in 2003 but when opening it in 2008
In my project I've got a top-level abstract class FrameProducer . I added a
My project has some unit tests. They all depend on some external service, over
My project has weirdly started failing with no error messages. Ive tried cleaning the
Our project has a trunk. I worked on Branch A, adding several features, and
My project has multiple themes with different colors. I need to skin certain textboxes
My Project has 2 java files (A.java and B.java in same package). A.java uses
A Project has multiple Tasks, which has multiple Assignments Projects (1-n) -> Tasks (1-n)
My project has a file foo that I've been using and checking in with
My project has a C++ library that I want to allow the user to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.